Escape characters
All Escape Character have its importance in C++.
I am sending u some common Escape characters.\a = alarm or alert
\b = it is used for backspace.
\t = it is used for tab(long space)
\n = it is used for new line.
\f = it is used for form feed.
\r = it is used for return to the start of the same line.
\\ = it is used to print one back slash.
\" = it is used to print the inverted commas.
All these escape characters will be used in double commas.
I think just reading them is not sufficient. you should make practice of all these urself atleast once than all will be clear.
Thanks
About gcount:
Example
| |
|
Possible output:
Please, enter a word: simplify 9 characters read: simplify |
本文详细介绍了C++中常见的转义字符及其用途,并通过一个示例程序展示了如何使用`gcount`来获取通过`getline`读取的字符数量。
1017

被折叠的 条评论
为什么被折叠?



