June 26th, 2013, 09:48 PM
please help with c++ program question over arrays!
I am trying to write a program that keeps track of social security numbers (SSN) of customers of a bank. I have to assume that SSN is a four-digit number (e.g., 1234. 0123 is not allowed.). When the program runs,it has to prompt that the user should enter a 4-digit SSN number to record, or 0 (zero) to exit.
The program also needs to be able to give an error message if a certain number is entered more than once.
After all the numbers have been saved and you finally end it by pressing 0, it needs to be able to output all the entered SSN's.
Here is my code so far, I am kinda lost from what to do from here can anybody help explain? not sure how to approach the rest can somebody please help me finish this code?
using namespace std;
bool isExist(int ssn, int records, int numberOfRecords);
void listRecords(int records, int numberOfRecords);
cout << "Please enter number or 0";
bool isExist(int ssn, int records, int numberOfRecords)
void listRecords(int records, int numberOfRecords)
Click Here to Expand Forum to Full Width
This is a CodeGuru survey question.