Lesson 1: introduction

Elementary terms

  • computer
  • program
  • source code
  • algorithm

First program: hello world

  • structure of program
  • output on the screen (text console): data stream cout
  • main function
  • comments
    • line comment
    • block comment
  • compilation of source codes
    • command line compiler (g++)

Second program: area of square

  • work with integers
    • datatype and variable
    • type int
      • arithmetical operators
      • comparison operators
      • limited range
    • reading value from keyboard (standard input): data stream cin
  • user input verification
    • statement if-else
      • branching according to value of condition
  • work with Integrated development environment QtCreator
    • installation of the IDE
    • project creation
    • project building
    • introduction to debugging
      • break point
      • stepping
      • watches

Attachments

Poslední úprava stránky: 30.09.2022, 14:40
Powered by PmWiki