Skip to content

Latest commit

 

History

History
56 lines (49 loc) · 2.29 KB

README.md

File metadata and controls

56 lines (49 loc) · 2.29 KB

CPP-00 Modern C++: course introduction and hello world

Notes during the course (slides)

  • structure of typical linux commands

    • pdfpc -h
    • sudo kill -9 # use the htop to see the pid
    • ctrl+R : search in history
    • sudo apt-get update: to update information about available packages
    • sudo apt-get install : to install the programme that you want
  • ** C++**

    • we won't teach you everything about C++ programming, C++ is used by numerous companies such as google, amazon, and other companies
    • where to write code: there are two operations
      • use the C++ IDEs
        • Clion
        • Qt creator
        • Eslipse
      • use the C++ text editors
        • sublime editor
        • VS code
        • VIM
    • comments start with "//" or /* comments */
      • on ine line follows the //
    • good code style is important
      • recommend to use the clang_format your code
      • use the cpplint to check your style
      • following a style guide will save your time and make the code more reliable
      • we recommend to use the Google Code Style Sheets
    • #incldue directive
      • #include -system include files #include "file" --local include files
    • I/O streams for simple input and output
      • #inlcude
    • compile and run hello world
      • we understand text
      • computer understand machine code
      • compilation is translation fropm text to machine code
      • compilers we can use on Linux
        • GCC
        • Clang
      • compile and run hello world example
        • c++ -std=c++11 -o hello_world hello_world.cpp
        • ./hello_world

Reference

  1. (slides)
  2. Google Code Styleguide
  3. C++ tutorials

Contact