How to use newline characters in C++
This article mainly introduces the relevant knowledge of how to use the newline characters in C++. The content is detailed and easy to understand, the operation is simple and fast, and it has a certain reference value. I believe you will gain something after reading this C++ article on how to use the newline characters. Let's take a look.
What are the newline characters in C++?
\ nWrap, move the cursor to the beginning of the next line
Endl to output the contents of the buffer slot to the console
\ r enter, move the cursor to the beginning of the current line, and will not change to the next line. If you continue to output, the previous contents of this line will be overwritten one by one.
# include using namespace std; int main () {cout