2.4 — Introduction to function parameters and arguments

In the previous lesson, we learned that we could have a function return a value back to the function’s caller. We used that to create a modular getValueFromUser function that we used in this program: #include <iostream> int getValueFromUser() { std::cout << “Enter an integer: “; int input{}; std::cin >> …

Site migration

Hey all, In order to clean up the site infrastructure and address some security and spam issues, we’ve migrated the site to a new (faster) server, and essentially rebuilt the site from the ground up. Some of the plugins used to provide functionality (including the code syntax highlighter) weren’t compatible …

B.1 — Introduction to C++11

What is C++11? On August 12, 2011, the ISO (International Organization for Standardization) approved a new version of C++, called C++11. C++11 adds a whole new set of features to the C++ language! Use of these new features is entirely optional — but you will undoubtedly find some of them …

Site software updated 11/23

Hey all, I updated the site software today, including the primary software and a bunch of plugins. So far everything seems to be working great but it’s very possible that something has gone awry somewhere. If you discover anything that seems wonky, please leave a message on this thread and …

6.x — Chapter 6 summary and quiz

Always use parentheses to disambiguate the precedence of operators if there is any question or opportunity for confusion. The arithmetic operators all work like they do in normal mathematics. The remainder (%) operator returns the remainder from an integer division. The increment and decrement operators can be used to easily …