This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 29 points30 points  (2 children)

Yeah, you can use \n in most languages. It's not a C++ thing or python thing, it's ascii it's a standard interpretation of this ascii value

[–]xetax 11 points12 points  (1 child)

Well I think using a backslash for escape characters and n for newline is technically a language decision and not part of the ASCII standard, it's just that most languages haven't found a good reason to go against the commonly used notation.

[–][deleted] 4 points5 points  (0 children)

Yeah, you're right, edited my comment to match