Question: For C++ i have developed while loop to read new c-string cin.getline(name, SIZE); however, the compiler skips this line in while loop. I know I

For C++

i have developed while loop to read new c-string

cin.getline(name, SIZE);

however, the compiler skips this line in while loop. I know I could use something like cin >> ws, cin.ignore, cin.sync or whatever,

but my professor won't admit anything outside of book,,

Is there way to debug it other than the methods I listed above?

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!