Thank you both laser light & Adrian - for taking time to give me answers that have helped me to resolve this problem.
Type: Posts; User: Khufu
Thank you both laser light & Adrian - for taking time to give me answers that have helped me to resolve this problem.
The function is passed a reference that is represented by n. It doesn’t return anything. That’s seems simple enough.
I’m not trying to learn about functions. I just asked for help with a class...
The errors are longer than the program code:
exercise2.cpp:17:19: error: C++ requires a type specifier for all declarations
void read_ages(&name, n) // member function
^...
#include "std_lib_facilities.h"
class name_pairs
{
public:
double age;
string name;