Assume that c is a char variable has been declared. Write some code that reads in the first character of the next line into c. Assume that the lines of input are under 100 characters long.
.
.
Click on the title for the solution
.
.
cin.ignore(20,'\n');
cin.get(c);
.
Click on the title for the solution
.
.
This is the answer:
:
cin.ignore(20,'\n');
cin.get(c);
Comments
Post a Comment