A guess.
Code:
int main()
{
unsigned short i = 0;
char a;
people tdata // ??
do
{
tdata.enter(i++);
cout << "Do you wish to enter another member ? (y/n)";
cin >> a;
}
while (a != 'n')
return 0;
}
...
Code:
void people::enter(int i)
{
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 political party the person belongs to (conservative, labour, liberal, other)";
gets(np[i].party);
}