How can write out rep sign (\) ?
cout << "???";
std::cout << "\\";
the character '\' ? it would be
cout<<'\\'<<endl; //just the single character
cout<<"c:\\someFile"<<endl; //used as part of a string
//second prints to console "c:\someFile"
edit: ..... beaten to the punch again :'( lols
string str="\\";
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.