Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

escape charactors

Status
Not open for further replies.

T3x

Technical User
Sep 23, 2003
11
LK

hi, i like to know what are the avilable escape charators for MS visual c++ 6.0. i tryed to use just \n but it did not worked. i was trying to get a new line in dos output.
 
The following example may help you :
Code:
#include <iostream>

int main ()
{
  std::cout << "\tsome tabbed text ended with \\n \n";
  std::cout << "begin of a new line" << std::endl;
  std::cout << "a new line with std::endl" << std::endl;
  return 0;
}
I tried it with the command line tools, it works.

--
Globos
 
yo globbs, thanks for the help!.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top