i have a cin.getline string that i want to place into an array , is it possible? if it isnt. is there another way i can do it?
here is a bit of the code. i need to put the input (string) into the array.
void newperson ()
{
int count, numppl;
cout<<"How many people do you want to introduce?"<<endl;
cin>>numppl;
for (count=0 ; count <=numppl ; count=count +1)
{
cin.getline (input, 200, '\n');
}
}