0

Can someone explain why i should add 4 more '\' to make it balance?

https://code.sololearn.com/c3O4BUn2A4PE/?ref=app

4th Mar 2018, 6:22 AM
Tio
Tio - avatar
2 Respostas
+ 10
\ is used for escape characters (Ex: \n for a newline). Because of this, \ has to be escaped, too, as \\.
4th Mar 2018, 6:24 AM
Tamra
Tamra - avatar
+ 10
Also! If you don't want escape characters to take effect, you can use raw strings, which are formatted like this: Code: R"(your text)" Result: your text You can even type your output across multiple lines.
4th Mar 2018, 6:31 AM
Tamra
Tamra - avatar