Code:
void AddCustomer()
{
cout<<"ADD"<<endl;
cout<<"Enter name to be added: ";
cin>>CustomerInfo.name;
cout<<"Enter address: ";
cin>>CustomerInfo.address;
cout<<"Enter lawn size: ";
cin>>CustomerInfo.lawnsize;
cout<<"Enter day to be cut: ";
cin>>CustomerInfo.daytobecut;
}
You can't fill CustomerInfo with information, you need to declare an instace of it first...
Code:
void AddCustomer(CustomerInfo Cust)
{
cout<<"ADD"<<endl;
cout<<"Enter name to be added: ";
cin>>Cust.name;
cout<<"Enter address: ";
cin>>Cust.address;
cout<<"Enter lawn size: ";
cin>>Cust.lawnsize;
cout<<"Enter day to be cut: ";
cin>>Cust.daytobecut;
}
Main...
Code:
int main()
{
char menuchoice;
CustomerInfo MyCustomer;
cout<<"Enter Display, Add, dElete, Quit: ";
cin>>menuchoice;
if(menuchoice=='A')
AddCustomer(MyCustomer);
else if(menuchoice=='D')
FindCustomer(MyCustomer);
else if(menuchoice=='E')
RemoveCustomer(MyCustomer);
return (0);
}