#include <iostream.h>
void main()
{
char line[25];
cout << " Type a line terminated by carriage return\n>";
cin.get( line, 25 );
cout << ' ' << line;
}
I am new to this forum and also C++
I want a help with cin.getline() function..
As you see the two codes above both use the getline() function.
The thing is that in the big code getline is not putting any string into "name".
when i choice is selected it just jumps to the next one. :(
can anyone suggest any solution and a reason for this.
n00b.