1.5 Introduction to iostream: cout, cin, and endl

주홍영·2022년 3월 10일
0

Learncpp.com

목록 보기
17/199

https://www.learncpp.com/cpp-tutorial/introduction-to-iostream-cout-cin-and-endl/

이번에도 기본적인 내용이므로 몇몇 내용만 기록한다

std::endl vs ‘\n’

std::endl이 덜 효율적이다
std::endl이 flush를 하기 때문에 \n에 비해 flush를 추가로 하는거라 비효율적

profile
청룡동거주민

0개의 댓글