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
Can't figure out /t
Can't figure out /t
Jan 15, 2010 at 12:43am UTC
Phazon
(27)
I'm completely new to C++ and I was reading a tutorial from this site. I tried to add /t to a string, but I can't actually get a tab. Here's the code:
cout <<
"I can't tab! "
<<
":("
<<
'/t'
<<
"Seriously!"
;
And the result was; "I can't tab! :(12148Seriously! I'm not sure what caused those numbers to appear, but I can safely assume I'm doing something wrong. Can anyone tell me what it is that I'm doing wrong please?
Jan 15, 2010 at 12:49am UTC
tummychow
(1210)
Wrong slash. It's this:
'\t'
Jan 15, 2010 at 12:59am UTC
Phazon
(27)
Oh wow. I feel really stupid. Thanks.
Jan 15, 2010 at 1:38am UTC
firedraco
(6243)
It happens to everyone. ;)
Topic archived. No new replies allowed.