LESSON 1.1 C++ OVERVIEW

Cards (15)

  • DATA TYPES
    a classification that dictates what a variable or object can hold
  • 3 Basic Major Data Types
    1. Numerical
    2. Alphabetical
    3. Logical
  • Integer no.
    whole number
  • Integer no. 

    int, short and long
  • Floating point numbers
    2 types: float and double
  • Alphabetic Data Type
    1. Character Data Type
    2. Strings Data type
  • Character Data type
    Store a single character
  • Strings Data type

    Store 2 more characters : “Melissa” or “apple”
  • LOGICAL DATA
    • Supports two vaues: true or false
    • Keyword: bool
  • C++ PRIMITIVE DATA TYPES
    A) integral
    B) floating
    C) char
    D) short
    E) int
    F) long
    G) bool
    H) float
    I) double
    J) long double
    K) unsigned
  • IDENTIFIER
    name to denote labels, types, variables, constant or functions, in a C++ program.
    • Identifiers should be descriptive
  • VARIABLE
    Location on computer’s memory to store data then use and change its value in a program
  • CONSTANT
    Fixed value, const
  • const [data type] [name] = initial value