How do you output \\ symbol using cout?
The '\' character is an escape character in C and C++. You can output a literal '\' by escaping it with itself:
cout << "This is a backslash: \\";