Special Group

COMP115 Lecture NOTES

  • COMP115 Notes zipped

    Core Concepts from COMP115

    This page is still under construction and more examples may appear.
    1. Simple C++ programs, TYPES int, double, char, bool, ARITHMETIC Operations, INPUT/OUPUT cin and cout
      Malik Chap 2 and 3. (can skip over p100-123 formatting as we can look that up when we need it).
    2. Selection - IF-THEN-ELSE and SWITCH
      Malik Chap 4
    3. Repetition - For loops while loops do loops
      Malik Chap 5 skip p235 - 240. we don't want to break or continue from our loops
    4. Testing and Debugging
      Not in Malik as such
      testing.pdf

    5. Functions - predefined functions, void functions, functions having a value, pass by value and pass by reference
      Chap 6 of Malik
      Chap 7 of Malik - skip p 321 -324 (forget static and automatic, forget function overloading for the moment, forget default parameters)
    6. Arrays read in, display, traverse, search through, sort (simple)
      Malik chap 9 - ignore C-strings and parallel arrays
    7. Using classes - note emphasis on USING classes such as class string
      Malik chap 8 - p 380-383 (ignore enumeration types)
    8. Reading and Writing from text files