This program has the user input name/age pairs and then outputs them, using a class. Here is the code.
name
age
#include \"std_lib_facilitie
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()