your original code was fine except for one minor thing. you must first assign strp to input. like this:
just add the '=input' after 'char *strp'Code:void newperson() { int count, numppl; char *strp=input; *strp = input[20]; cout<<"How many people do you want to introduce?"<<endl; cin>>numppl; for (count=0 ; count <=numppl ; count=count+1) { cin.get (input, 20); } }