I am working on an assignment that requires the storing of employee information in a structure, and then an array. If the array is declared without set values, how do I assign user input information to an address as it's entered, and pull up a specific employee afterward?
struct CustomerAccounts
{
string CustomerName
string CustomerAddress
string City
string State
int ZipCode
int Telephone
double Accountbalance
double lastpayment
};
int main()
{
const int NUM_WORKERS = 20;
CustomerAccounts array[NUM_WORKERS];
int index;
int userchoice;
int CustomerNumber;
//Main Menu
cout << "1. Enter new account information" ;
cout << "2. Change account information" ;
cout << "3. Display all account information" ;
cout << "4. Exit the program:" ;
cin >> userchoice;