Is there are a way to "escape" escape characters? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 1

Is there are a way to "escape" escape characters?

Is there a way so I don't have to write a second backslash to print a backslash in a string?

29th May 2017, 10:55 AM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar
3 Réponses
+ 6
using ascii value cout << char(92);
29th May 2017, 11:22 AM
Burey
Burey - avatar
+ 1
thanks :)
29th May 2017, 12:16 PM
‎ɐısıօլɐ
‎ɐısıօլɐ - avatar
0
"\"
29th May 2017, 11:07 AM
Jaydev Shiroya
Jaydev Shiroya - avatar