0

how to print \ and \n in c++

why we have to add another \

24th Jan 2017, 11:11 AM
Shivam Raghuwanshi
2 Réponses
+ 1
try scaping the \ adding another the \. It would be \\ and \\n.
24th Jan 2017, 11:06 AM
Kleber Leal
Kleber Leal - avatar
- 1
try it:-) #include <iostream> using namespace std; int main() { cout << "\\ and \\n"; return 0; } //I think now it's true...;-)
24th Jan 2017, 11:19 AM
ă…€ Fetcher ㅀㅀ
ă…€  Fetcher ㅀㅀ - avatar
Aujourd'hui en vedette
.
1 Votes
What?
0 Votes
HTML
0 Votes
Web
0 Votes
Quiz duel
0 Votes
FRC Coding?
1 Votes
help
0 Votes
AI
2 Votes
APIs
1 Votes