0
\n Issues
As part of a tutorial, it told me that if I want words/phrases on different lines, I need to add the "\n" command between each word. When I try to execute it, it fails and I don't know why. Suggestions?
1 Odpowiedź
+ 2
"\n" is used as new line when printing an output, you could use std::endl instead like
std::cout << "abc" << std::endl << "def"
this will print to the console
abc
def