0

Hola. Saben como usar el Getline? hi. do you know how use Getline?

28th Jul 2016, 7:35 PM
Felipe Idrobo
Felipe Idrobo - avatar
3 Antworten
+ 1
get line is a feature used for string input. string myString; getline(cin,myString);
28th Jul 2016, 8:01 PM
destro
+ 1
amruth, that won't compile. get line isn't a method of cin it's it's own function. it is used like this: getline (cin,string);
30th Jul 2016, 1:40 PM
destro
0
using namespace std; getline (cin, NombreVariableString);
7th Aug 2016, 7:29 AM
Antonio
Antonio - avatar