How do you output \\ symbol using cout?
cout << "\\" << endl;
Instead of endl you could:
cout << "\\ \n";