News

Modern C++. How To Write a Function That Returns More Than One Value. Like magic, tuples make the impossible possible. Yep, we're talking here about one little corner in the Standard Template Library ...
I seem to recall some sort of mechanism that someone coded in C++ to prevent discarding the return value of a function. But I can't remember what it was, or quite for certain if I'm remembering it ...
I'm just learning c++ and I'm really stuck with trying to figure out how to return a true or false value from a function to the main program. If anyone can help me I have no clue what to do.