Hey guys just needed some help with a code for school, it is pretty basic but i'm stuck on an error that occurs while debugging.
here is the exact code I've typed in...
cout << "Enter the name of the recorder: "; //Entering name of the recorder
getline(cin, name2);
cin.ignore();
cout << "\nThank you, " << name2 <<", for entering the data for " << name << endl;
return 0;
So what happens whenever I input name2 is it doesn't produce an output when I enter a line in.
given output (user input = [bold])
Enter the name of the recorder: [Boomer kuwanger]
Thank you, ,for entering the data for (the variable "name" works, and is the same coding ex: getline but earlier in the program)
please help me solve this problem and why it has no output!