• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 437
  • Last Modified:

tabstop in vc++

hi experts,

how can i add a tabstop to a cstring in vc++?

thx
0
obiwankenobi6bone
Asked:
obiwankenobi6bone
  • 2
1 Solution
 
leflonCommented:
hi obi

if mean by 'tabstop' that you like to insert a tabulator char (step to next tabstop) then use the '\t' sequence.

char str[] = "Hallo\tworld!\n";
cout << str << endl;

will print something like

Hello         world!

leflon
0
 
leflonCommented:
if you use a CString there is no difference

CString str;
str = "Hallo\tworld!\n";

leflon
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now