+ 1
Sir can we use the \n in place of endl..pls reply
3 Réponses
+ 3
Yes, endl just prints a \n character and (manually) flushes the buffer (something that is usually unnecessary).
+ 1
You don't notice the impact of the endl flush but it helps you debugging because everything which is printed is really on the screen.
You can also #define endl '\n' when you release the code.
Or in Visual Studio, you can also replace all occurences with Ctrl+F.
0
thanx sir for reply