#beginner c++

10 messages · Page 1 of 1 (latest)

remote monolith
#

hi, so I just started learning c++ and was wondering how to write this code. im not sure how to do the leading spaces and not write this code in one line. thank you!

river juncoBOT
#

When your question is answered use !solved to mark the question as resolved.

Remember to ask specific questions, provide necessary details, and reduce your question to its simplest form. For more information use !howto ask.

olive cargo
#

You can put spaces in string literals too

#

cout << " NO PARKING\n";

remote monolith
#

sorry to ask but what does the \n mean?

snow sequoia
#

it's the newline character, it terminates the line and starts a new one basically

remote monolith
#

ohh thanks!

#

!solved

river juncoBOT
#

Thank you and let us know if you have any more questions!

#

[SOLVED] beginner c++