In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces the relevant knowledge of "case analysis of the use of C language escape characters". The editor shows you the operation process through the actual case, and the operation method is simple, fast and practical. I hope this article "case analysis of the use of C language escape characters" can help you solve the problem.
1. Recognize escape characters
All ASCII codes can be represented by "" plus numbers (usually octal digits). C defines some letters preceded by "" to represent common ASCII characters that cannot be displayed, such as, etc., which are called escape characters, because the following characters are not its original ASCII character meaning. The most common thing in learning c is to use line wrapping.
/ * transfer character code implementation * / printf ("hello"); printf (""); / / backspace character printf (""); / / newline printf ("a"); / / ring / / printf (""); / / horizontal tab / printf ("v"); / / vertical tab character printf ("") / / "indicates single quotation marks printf ("); / / "indicates single quotation marks
two。 Special form of escape character
What you need to remember in the c language string is * * "for", "for" * *
Open the application software with VS2013
Code 1:
System ("F:qq1BinQQScLauncher.exe")
Code two
System ("F:qq1BinQQScLauncher.exe")
For the software to recognize the location of the QQ application, you must use the
3.putchar output character / * putchar output character * / printf (""); putchar ("h"); / / h is a character, using single quotation marks to output putchar ("e"); putchar ("l"); putchar (104); / / h is a character, corresponding to the integer is 104 ASCII code putchar ("); putchar (" 101") / / ddd represents three-digit octal, and integers correspond to the characters of A.
Printing out "hello" can not only output the string hello directly with the printf function, but also use the putchar-to-character output.
This is the end of the content of "case Analysis of the use of escape characters in C language". Thank you for your reading. If you want to know more about the industry, you can follow the industry information channel. The editor will update different knowledge points for you every day.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.