cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
Beginners
How to print special keys
How to print special keys
Oct 24, 2014 at 2:49pm UTC
bashishen
(2)
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.
Oct 24, 2014 at 6:15pm UTC
PCrumley48
(173)
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.