Hi I am a beginner,

I am using 2 cin statements, one after the other. However, the program does not stop to wait for an input from the second cin statement.

How do I overcome this, and,

more importantly why is this happening?

Thanks

Code:
     
                cout << "Please enter first name: "l;
                cin >> name; 
	cout << "Please enter your name: ";
	cin.getline(name1,14);