Specify how to implement the C+++ class template



  • C+++. Create a class template with a sorting method, separate its class Adres from its fields of town, street, index. I can't figure out how to realize that I'm supposed to take the mass class?



  • Do you really need a template if the type of "Adres" is clearly defined?

    Get inside your class a "Adres" and a method. sort()which will sort this body. I suspect that the fields of the address will be rows, then sort them through the alphabet, first take the city. If the city turns out to be the same, watch the street, then the index.




Suggested Topics

  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2
  • 2