bugl
bugl
HomeLearnPatternsPathsSearchPremium
HomeLearnPatternsPaths
Learn/C++

C++

C++ How To

Part of the C++ path, C++ How To digs into C++ How To Add Two Numbers in detail.

Lesson 1

C++ How To Add Two Numbers

In this example, the user must input two numbers. Then we print the sum by calculating (adding) the two numbers:

Read lesson →Loading…
Lesson 2

C++ How To Generate Random Numbers

You can use the rand() function, found in the <cstdlib> library, to generate a random number:

Read lesson →Loading…

C++ chapters

All
1. C++ Tutorial2. C++ Functions3. C++ Classes4. C++ Errors5. C++ Data Structures6. C++ Namespaces7. C++ Projects8. C++ How To9. C++ Reference10. Practice