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
just add static keyword at the starting of the function return type.. and then you can access the member function of the class without object:) for ex:
static void Name_pairs::read_names() { cout << "Enter name: "; cin >> name; names.push_back(name); cout << endl; }