Brief summary

  • A C/C++ program begins with include statements of header files (libraries,intrinsic functions etc)
  • Functions which are used are normally defined at top (details next week)
  • The main program is set up as an integer, it returns 0 (everything correct) or 1 (something went wrong)
  • Standard if, while and for statements as in Java, Fortran, Python...
  • Integers have a very limited range.