Hello. What does endl
mean:
std::cout << "Таблица информации" << std::endl;
It is important to note that std::endl
not only inserts a newline character. You can insert '\ n' , or '\ r \ n' , but the line output will occur only at the end of the block (program) or when flushing the buffer.
std::endl
forcibly clears the output buffer , and the string is output immediately after this command.
ostream& endl ( ostream& os );
Inserts a newline character in this case after the text.
End of line. The special symbol "\n"
can also be used. For example, cout<<"ПРИМЕР!\nТаблица информации";
will print "EXAMPLE" on one line, and "Information table" on a new line.
With onsole OUT << [i. On her] "TEXT" << ENDL ine
Source: https://ru.stackoverflow.com/questions/54652/
All Articles