i have something like char *name[10];
cout<<"enter a name<<endl"
gets(name);
puts(name);
This gets name as a string and later prints it on the stream using those two i/o functions. The compiler might find it necessary to include <cstring> header file since you're dealing with strings.
Bye, Programmed.
|