Here is an example program I just made. Please look at it.
PHP Code:
#include <iostream.h>
int main()
{
char quit;
quit = '/0';
while (quit != 'q')
{
char string1[256];
cout<<"Hello my name is SideShow Bob.";
cout<<" What is your name?";
cin.getline(string1, 256, '\n');
cout<<" I'm please to meet you, ";
cout<<string1<<"."<<endl;
cout<<" Type 'q' to quit. "<<endl;
cin>>quit;
}
return 0;
}
Ok, as you can see, it looks like a very complicated version of making a string for the users input.
Is there any easier way of doing this???