//cpp_by_examplebytiny

cpp_by_example

table of contents for c++ development

0
0
0
C++

c++ by example

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

02 data and variables

  • 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

12 demo: ATM machine

  • sample program

13 timers

  • multi threads with timers

14 state machine

  • basic state machine

15 demo: coke machine

  • sample state machine with timers

16 singletons

17 the central core

18 threads

  • mutexes
  • semaphores
  • thread safe objects

19 observables and loose coupling

20 sockets

  • server
  • client

21 stock symbol and ticks

  • observable object

22 financial portfolio

  • observes the stock object for each position
  • dependency driven calculations
Find me
[beta]v0.15.0