I need help...
how can I make it so that the user can enter more than one word for thier string (ex: "blah blah", rght now I can only read the first blah)
please help!
I need help...
how can I make it so that the user can enter more than one word for thier string (ex: "blah blah", rght now I can only read the first blah)
please help!
Code:#include <iostream> using namespace std; int main () { char name[256], title[256]; cout << "Enter your name: "; cin.getline (name,256); cout << "Enter your favourite movie: "; cin.getline (title,256); cout << name << "'s favourite movie is " << title; return 0; }
Luigi
// I use Xcode 1.1 && CodeWarrior 8.3
// When on Mac Os X 10.3.2
// I use Microsoft Visual C++ 6.0
// When on windows XP