View Single Post
  #5 (permalink)  
Old October 28th, 2003, 01:35 AM
programmed programmed is offline
Authorized User
 
Join Date: Oct 2003
Posts: 25
Thanks: 0
Thanked 0 Times in 0 Posts
Default

 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.

Reply With Quote