0

I'm using Code::Blocks and \n doesn't work as <<endl would work,help?

It's really buzzing me since in here they make me use \n in every tutorial but in my IDE \n does nothing but bug my code,I'm fine with using endl but I just have to write more lines and its annoying

10th Feb 2017, 8:23 PM
Denis
Denis - avatar
2 Respuestas
+ 1
can you provide an example?
10th Feb 2017, 10:13 PM
JofS
JofS - avatar
0
You have to put that inside the quote marks. Example: cout<<"Can't wait to see you again. \n";
9th Apr 2017, 10:14 AM
Muhammad Hidayat
Muhammad Hidayat - avatar