sinemakinci1 / Cpp-Copilot-VSC-Demo

0 stars 0 forks source link

`endl` instead of `\n` #7

Closed TartanLlama closed 9 months ago

TartanLlama commented 9 months ago

https://github.com/sinemakinci1/Cpp-Copilot-VSC-Demo/blob/21a2875a135da17b8ab0990026c4b331c9091dfc/src/calculator.cpp#L17

People tend to get annoying about uses of std::endl instead of '\n' since it both outputs a newline character and flushes the stream, which is usually not necessary.