Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

tabstop in vc++

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

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

leflon
0

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

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 connect and configure Android Device (Smartphone etc.) with Android Studio. After that we will run a simple Hello World Program.
This article will show how Aten was able to supply easy management and control for Artear's video walls and wide range display configurations of their newsroom.
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Introduction to Processes

618 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