@duoas
I am not declaring a string
I am inputting a string
I wrote "I am making a very basic calculator"
When those calculators take in strings? And if they do, it is not a simple one!
It ensures that what you put in std::cout gets written tot he target (e.g. forced to display on screen). std::cout is buffered, so when you write data to it, it might not actually send that data to the target - it could just stay in the buffer. std::endl calls std::flush as well.
I understand. Thank you. I didn't know std::endl called flush.
However, I've never had the problem of std::cout NOT writing to the target. Is this ever done intentionally? (I doubt so). If so, when, and why? If not so, what code would cause it not to write?