+ 1
What is the script for entering a blank line in C programming?
What is the code for when someone enters a blank line or just presses enter on a blank line it indicates that the user is finish with entering variables or characters?
3 Réponses
0
string line;
getline(cin,line);
0
In C you can use a escape character of \n for a new line, puts() also adds a new line so for a blank line you could:
printf("\n");
puts("");
For a blank line.