you also can use gets()
char *str = new char[128];
gets(str);
or change a EOS symbol
char *str = new char[128];
cin.getline(str, 128, '\n'); //instead '\n' type your EOS symbol e.g. '$'
you also can use gets()
char *str = new char[128];
gets(str);
or change a EOS symbol
char *str = new char[128];
cin.getline(str, 128, '\n'); //instead '\n' type your EOS symbol e.g. '$'