k i got it mostly working but for some reason the first two questions print in a single line
Code:
void people::enter(int i)
{
char k = 'y';
while (k == 'y')
{
cout << "Enter the name of the person ";
gets(np[i].name);
cout << "Enter the phone number of the person ";
gets(np[i].phone);
cout << "Enter the full address of the person ";
gets(np[i].address);
cout << "Enter the Email address of the person";
gets(np[i].email);
cout << "enter the name of the party that the person belongs to ( conservative, labour, liberal, other)";
gets(np[i].party);
cout << "Do you wish to enter another member ? (y/n)";
cin >> k;
}
}
any idea