I have just recently started to slowly read through "Accelerated C++" in an attempt to learn C++. However, I've came across a couple of things that I don't quite understand and hoping that someone will be able to help me.
In chapter one (1.1) it talks about the input/output buffer, but I don't really understand a couple of things about it. Why does it save my text into a buffer and not output it directly to the console? And I also read that you need to flush the buffer for your text to be outputted to the console, does this mean I need to flush it every time I want to output text?
And in chapter two (2.3) it talks about loop invariants. What exactly is a loop invariant and why do I need to know about it? I've read it over and over and even looked on other websites for their definitions and examples but I still don't get it.
I'm sorry for asking these things but I really like to understand absolutely everything about the subject I'm learning.