By writing the same code i am getting output incorrect.
Input:
coding blocks
hello world
Output:
oding blocks
hello world
The first character of 0th row is not displayed.
And when i comment cin.get() , i dont have this problem.
By writing the same code i am getting output incorrect.
Input:
coding blocks
hello world
Output:
oding blocks
hello world
The first character of 0th row is not displayed.
And when i comment cin.get() , i dont have this problem.
hello @dee777
cin.get() reads a single character.
pls share ur code so that i can check what u r doing
I hope I’ve cleared your doubt. I ask you to please rate your experience here
Your feedback is very important. It helps us improve our platform and hence provide you
the learning experience you deserve.
On the off chance, you still have some questions or not find the answers satisfactory, you may reopen
the doubt.