C/C ++ Escape Character Daquan

Source: Internet
Author: User

For ease of viewing, escape characters are collected as follows:
Escape Character meaning ASCII code value (decimal)
/A bell (BEL) 007
/B backspace (BS) 008
/F form feed (FF) 012
/N line feed (LF) 010
/R press enter (CR) 013
/T horizontal tabulation (HT) 009
/V vertical tabulation (VT) 011
// Backslash 092
/? Question mark character 063
/'Single quotes character 039
/"Double quotation mark character 034
/0 null character (null) 000
/DDD any character three octal characters
/Xhh any character two hexadecimal

 

Note:

1,/V vertical tabulation and/F break do not affect the screen, but will affect the printer to perform the response operation.

2,/N should actually call the carriage return to wrap the line. Line feed only changes one line without changing the horizontal coordinates of the cursor. Press enter to return to the beginning of the line without changing the vertical coordinates of the cursor.

3,/t move the cursor forward four or eight cells, which can be set in the Compiler

4,/'is used in characters (that is, in single quotes. It is not required in the string (that is, double quotation marks). You only need to use.

5 ,/? Actually not necessary. As long as it is used? You can (verify in Windows vc6 and TC2 ).

6. Only lowercase letters can be used for escape characters. Each escape character can only be considered as one character.

 

Related Article

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.