a list of c++ examples increasing in complexity exercising useful components used in the industry
gradually increasing in difficulty to help those wishing to learn c++ development
01 hello cpp
- basic structure of every c++ program
- shows basic CMakeLists.txt file
- types
- ranges
03 functions
- using basic functions
- creating your first function
04 cmdline
- processing the command line arguments
- conditionals and function calls
- conventions
05 structures
- holding data in structures
- passing structure around
- concerns (size)
06 arrays
- keeping all the data together
07 operators
- arithmetic
- assignment
- comparison
- logical
08 pointers
- memory allocation
- basic string
- strlen
09 conditionals
- if then / if then else
- conditional assignment / ternary operator
10 loops
- for
- while
- repeat until
- range-based / foreach loops
11 switch
- sample program
13 timers
- multi threads with timers
- basic state machine
- sample state machine with timers
16 singletons
18 threads
- mutexes
- semaphores
- thread safe objects
19 observables and loose coupling
20 sockets
- server
- client
- observable object
- observes the stock object for each position
- dependency driven calculations