matheusmello.io
BlogProduct ReleasesToolsBooksContact

iostream

"printf" vs. "cout" in C++
iostream
September 2, 20231 min read

"printf" vs. "cout" in C++

# `printf` šŸ†š `cout` in C++: Battle of the Printing Functions šŸ‘‰ Are you a C++ programmer struggling with choosing between `printf()` and `cout` for printing values? You're not alone! The battle between these two printing functions has been ongoing for ag

iostreamprintf
Why is iostream::eof inside a loop condition (i.e. `while (!stream.eof())`) considered wrong?
iostream
September 2, 20231 min read

Why is iostream::eof inside a loop condition (i.e. `while (!stream.eof())`) considered wrong?

šŸ“ **Title: Why Using iostream::eof in a Loop Condition is Considered Wrong?** **Introduction:** Do you often find yourself using `while (!stream.eof())` when reading data from a file using C++? šŸ“šāœļø It's a common practice, but did you know that it is con

iostream
"std::endl" vs "\n"
iostream
September 2, 20231 min read

"std::endl" vs "\n"

šŸ“ **Title:** The Battle of Newlines: "std::endl" vs "\n" in C++ šŸ’” **Introduction:** Ever wondered why some C++ developers opt for using "\n" instead of "std::endl" when writing code? We've all seen both approaches used in different examples, leaving u

iostream
Why is reading lines from stdin much slower in C++ than Python?
benchmarking
September 2, 20231 min read

Why is reading lines from stdin much slower in C++ than Python?

# Why is reading lines from stdin much slower in C++ than Python? šŸšŸ¢ So, you tried to compare reading lines from standard input (stdin) using Python and C++, and you were surprised to see that your C++ code was running much slower than the equivalent Py

benchmarkinggetlineiostream
+1

About

Personal blog sharing insights on software engineering, technology, and developer productivity.

TwitterGitHubLinkedInEmail

Tags

Loading tags...

Subscribe to Updates

Get the latest posts delivered right to your inbox.

Ā© 2025 MatheusMello.io. All rights reserved.