?
Solved

tabstop in vc++

Posted on 2004-04-08
2
Medium Priority
?
432 Views
Last Modified: 2012-05-07
hi experts,

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

thx
0
Comment
Question by:obiwankenobi6bone
  • 2
2 Comments
 
LVL 7

Expert Comment

by:leflon
ID: 10782561
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
 
LVL 7

Accepted Solution

by:
leflon earned 400 total points
ID: 10782571
if you use a CString there is no difference

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

leflon
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
The SignAloud Glove is capable of translating American Sign Language signs into text and audio.
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …
Starting up a Project

840 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question