Solved

tabstop in vc++

Posted on 2004-04-08
2
426 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Transaction Monitoring Vs. Real User Monitoring

Synthetic Transaction Monitoring Vs. Real User Monitoring: When To Use Each Approach? In this article, we will discuss two major monitoring approaches: Synthetic Transaction and Real User Monitoring.

Question has a verified solution.

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

This article will show, step by step, how to integrate R code into a R Sweave document
In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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 fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

695 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