Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ enter name and surname one string

cout<<"Enter name"<<endl; //includes surname
getline(cin, name); // assum name is std::string

cin.getline(name, sizeof(name)); // assumes name is a character array
Source by www.daniweb.com #
 
PREVIOUS NEXT
Tagged: #enter #surname #string
ADD COMMENT
Topic
Name
3+4 =