Solved

tabstop in vc++

Posted on 2004-04-08
2
418 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 100 total points
ID: 10782571
if you use a CString there is no difference

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

leflon
0

Featured Post

Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Suggested Solutions

Here we come across an interesting topic of coding guidelines while designing automation test scripts. The scope of this article will not be limited to QTP but to an overall extent of using VB Scripting for automation projects. Introduction Now…
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
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 …
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

747 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now