This program has the user input
However, in |
|||
add a comment
|
27
|
You need to instantiate an object in order to call its member functions. The member functions need an object to operate on; they can't just be used on their own. The
|
|||
14
|
If you want to call them like that, you should declare them static. |
||||||||
|
1
|
You are right - you declared a new use defined type (Name_pairs) and you need variable of that type to use it. The code should go like this: Name_pairs np; np.read_names() |