0
how to print \ and \n in c++
why we have to add another \
2 ответов
+ 1
try scaping the \ adding another the \. It would be \\ and \\n.
- 1
try it:-)
#include <iostream>
using namespace std;
int main()
{
cout << "\\ and \\n";
return 0;
}
//I think now it's true...;-)