if I get this down, then I'll complete my assignment.
I want my program to have the ability that whoever is using the program has the ability to control how many customers a restaurant has.
Say Pressing C = new customer.
And depending on how many times they press c, they should have a number associate them with it.
Say he types in CCC, then the first C should have a 1, and the second should have a 2, and the third should have a 3.
Say you have the structs, and etc.
And we're not in the main.
char action;
cout<<"how many?";
cin>>action;
if(sub_choice(action))
{
while (action == 'C')
{
Customer *CUST = new Customer;
int count = 1;
CUST->lineNumber = count;
count++;
CUST = CUST-> next;
}
}
but all this does, when compile is output a series of 111111111111111