49 int phonebook_size = 3;
52 int num_records = 0, count;
61 cout <<
"Please enter the filename: ";
64 cout << endl << num_records <<
" record(s) loaded." << endl << endl;
77 cout <<
"Please enter a name: ";
81 cout << count <<
" record(s) found." << endl << endl;
85 cout <<
"Please enter the filename: ";
88 cout << endl << count <<
" record(s) saved." << endl << endl;
92 if (num_records >= phonebook_size)
95 if (num_records < phonebook_size)
96 num_records =
add_record(phonebook, num_records);
97 cout <<
"There are now " << num_records <<
98 " record(s) in the phonebook." << endl << endl;
102 cout <<
"Invalid input!" << endl;
107 cout <<
"Goodbye!" << endl << endl;