How do i cin a whole line ?
For example, if I type both firstname and lastname,
the following code doesn't work.
http://mahurshi.tripod.com/mainframes.htmCode:#include <iostream.h> #include <stdio.h> main() { char name[20]; cout << "Enter Name : "; cin >> name; cout << "Hello " << name; getchar(); }