Solved

tabstop in vc++

Posted on 2004-04-08
2
420 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Fibonacci challenge 11 108
creating threads in delphi 1 82
Recommendation vb6 to vb.net or others 14 105
simplest php form 3 59
This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …
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…

914 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

17 Experts available now in Live!

Get 1:1 Help Now