"VC + +" newline character, carriage return, single quotation mark, double quotation mark, slash \, backspace

Source: Internet
Author: User

VC + + line break, carriage return, single quotation marks, double quotation marks, backspace, jump, slash \, special characters in detail, \ r \ n = chr (+CHR), VC + + line symbol, VC + N newline characters, VC + + line, VC + + line, VC \ n Symbol, vc+ + line break, VC + + line, VC + + \n,vc++ to replace a line, VC + + to change lines, VC + + \ n Next line, VC + + down line, VC + + down, VC + +, a line, VC + +, vc+ + downlink, \b, backspace, \f, paper page change, \ n, newline, is Line_feed, is another line, \ r, enter, is the Carriage_return, put the output position back to the beginning of the line, \ t, horizontal jump lattice, \ n, string end flag, \ \, character \,\ ', single quote, \ "= double quotes, \ddd: in 8 notation, \XHH: With 16 into the tab," \ n "and" \ R "difference, the line" \ r \ n ", \ r the cursor moves to the beginning of the start, \ n Another line, another line and move the cursor line, \ r \ n NewLine, carriage return, Windows standard line break, The ASCII code inside "\ r \ n" is "0x0d0x0a".

VC + + line break, carriage return, single quotation mark, double quotation mark, backspace, jump, slash \, special character features detailed description:

\b = backspace \f = paper page change \ n = newline, is Line_feed, is another line. \ r = Carriage return, is Carriage_return, actually put the output position back to the beginning of a line. \ t = cross-tab = string End flag \ \ = character \ \ ' = single quotation mark \ ' = Double quote \ddd: in 8 notation \xhh: With 16 in tab

"\ n" and "\ R" Difference: for example: aaaaaa\rbbb,printf out is bbbaaa,\r after the position of the BBB moved forward, behind 3 A is \ r front three.

Use instance: To wrap, you can output "\ r \ n" on the standard output of the console, that is, \ r The cursor moves to the beginning of the line, \ n Another line, combined is, another line and move the cursor to the beginning of the line, is a newline character, carriage return. This is the Windows standard line break, the ASCII code inside "\ r \ n" is "0x0d0x0a" (CHR) +CHR (10)).

"VC + +" newline character, carriage return, single quotation mark, double quotation mark, slash \, backspace

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.