Alright I have these basic lines of code:
My program stops after the first cout line and waits for input, I put the info in and hit enter, it then prints out the next cout line but does not stop to get the input from the user.Code:cout << "Enter a Number: "; cin >> number; cout << "What is your name: "; cin.getline ( name, 300, '\n' );
What do I need to do here to get it to stop and wait for the input of the name?
Thanks