The following program is designed to print the name of the language standard your compiler is currently using. You can copy/paste, compile, and run this program to validate that your compiler is ...
https://www.learncpp.com/cpp-tutorial/what-language-standard-is-my-compiler-using/
In the prior lesson (), we showed this example, where we used a
function to convert an enumeration into an equivalent string: #include
https://www.learncpp.com/cpp-tutorial/introduction-to-overloading-the-i-o-operators/
In the prior lesson (), we showed an example like this: #include
https://www.learncpp.com/cpp-tutorial/converting-an-enumeration-to-and-from-a-string/
In lesson , we discussed cases where a function encounters an error that it cannot reasonably handle itself. For example, consider a function that calculates and returns a value: int doIntDivisio...
What is C++23? In February of 2023, the ISO (International Organization for Standardization) approved a new version of C++, called C++23. New improvements in C++23 For your interest, here’s a l...
When we need to pass a std::vector to a function, we pass it by (const) reference so that we do not make an expensive copy of the array data. Therefore, you will probably be surprised to find tha...
https://www.learncpp.com/cpp-tutorial/returning-stdvector-and-an-introduction-to-move-semantics/
Nice work. Function templates may seem pretty complex, but they are a very powerful way to make your code work with objects of different types. We’ll see a lot more template stuff in future cha...
https://www.learncpp.com/cpp-tutorial/chapter-11-summary-and-quiz/
What happens if we want to use a random number generator in multiple functions or files? One way is to create (and seed) our PRNG in our main() function, and then pass it everywhere we need it. B...
https://www.learncpp.com/cpp-tutorial/global-random-numbers-random-h/
Chapter Review occurs when a project’s capabilities grow beyond what was originally intended at the start of the project or project phase. is the process of testing whether or not the software ...
https://www.learncpp.com/cpp-tutorial/chapter-9-summary-and-quiz/
In the previous lesson , we defined what a constant expression is, as well as a compile-time constant. This lesson continues that discussion. When you declare a const variable using the const key...