What I Have Covered in Class So Far

What I Have Covered in Class So Far

<p>What I have covered in class so far:</p><p>Program. Function. Machine language, assembly language and high level languages Source code, Object Code, Executable code. Editor, Compiler, linker and loader. Syntax, Semantics, runtime and logical errors Algorithm- Step-by-step problem-solving process. Solution achieved in finite amount of time Constant, variable. Data types (set of values together with a set of operations) A variable should be declared with a name and type before using. First time you place a value in a variable is called initializing. Remember, it never is zero when you declare a variable. If you want it to be 0, you must place 0 in the variable. C++ data types fall into three categories: (1) Simple data type (2) Structured data type (3) Pointers We will work with simple data types for several weeks. Such as int, float (6 or 7 significant digits-needs four bytes), double (15 significant digits –needs 8 bytes), char, and bool. Memory, address, each cell can contain a programming instruction or data EBCDIC, ASCII, Unicode Preprocessor directives begin with # and are processed by the preprocessor</p><p>Two popular approaches to programming design: Structured and Object-oriented cin>> cout<< Today we will cover: • C++ arithmetic operators: – + addition – - subtraction – * multiplication – / division – % modulus (or remainder) operator • +, -, *, and / can be used with integral and floating-point data types • Use % only with integral data types Order of precedence • All operations inside of () are evaluated first • *, /, and % are at the same level of precedence and are evaluated next • + and – have the same level of precedence and are evaluated last • When operators are on the same level – Performed from left to right (associativity)</p><p>• 3 * 7 - 6 + 2 * 5 / 4 + 6 means (((3 * 7) – 6) + ((2 * 5) / 4 )) + 6 We will run a program that will demonstrate this.</p><p>= assignment symbol in c++ . == equal to test in C++</p>

View Full Text

Details

  • File Type
    pdf
  • Upload Time
    -
  • Content Languages
    English
  • Upload User
    Anonymous/Not logged-in
  • File Pages
    2 Page
  • File Size
    -

Download

Channel Download Status
Express Download Enable

Copyright

We respect the copyrights and intellectual property rights of all users. All uploaded documents are either original works of the uploader or authorized works of the rightful owners.

  • Not to be reproduced or distributed without explicit permission.
  • Not used for commercial purposes outside of approved use cases.
  • Not used to infringe on the rights of the original creators.
  • If you believe any content infringes your copyright, please contact us immediately.

Support

For help with questions, suggestions, or problems, please contact us