- 1
How to print // in c++
If user want to print //
3 Réponses
+ 2
cout << "//";
works
https://code.sololearn.com/c57NOGztr61V
Is this what you wanted ?
+ 2
If you want to print // , then write :
cout << "//";
but if you want to print \\ ,then write :
cout << "\\\\";
0
Can't you just do the regular?
std::cout << "//";
What did you mean "user wants to print //" ?
Can you show your code so the problem can be seen more obviously?