How to print special keys

Hi,

I'm using visual studio and can't seem to print and repeat alt 205 several times on the screen.

I have this line of code and getting an error on cout:

string s = (20, '\═');
cout << s;

What is missing here? Any help would be much appreciated.
You don't need the assignment "=" or the \

1
2
string s ( 20, '=' ); or
string s ( 20, 205 );


will work
Topic archived. No new replies allowed.