|
Nov 23, 2024
|
|
|
|
CIS 161 - C++ Credits: 3 Lecture Hours: 2 Lab Hours: 2 Practicum Hours: 0 Work Experience: 0 Course Type: Voc/Tech Students will examine the structure of typical C++ programs, explore the concepts of object-oriented programming and design business applications in C++. Competencies
- Utilize an Integrated Development Environment (IDE)
- Write, compile, link and execute a simple C++ program to produce a working application
- Use the native debugging tools
- Perform basic C++ syntax, coding structures and operations
- Use C++’s primitive data types as variables and constants including data type conversion (casting)
- Use the iostream class for appropriate input and formatted output (“cout”, “cin”)
- Investigate the different uses of the assignment operator (=, +=, x=y=z)
- Identify and include appropriate preprocessor directives
- Distinguish among relational operators
- Use relational and logical operators to write repetitive control structures (“for”, “while”, “do..while”)
- Use relational operator to write selection control structures (“if”, “if..else”, “switch”)
- Include logical operators in control structures
- Demonstrate error handling and input validation
- Use sentinel values, “break” and “continue” to control program flow.
- Investigate the concept of a structure
- Distinguish between “definition” and “declaration” of a data structure
- Show how to access structure members
- Demonstrate the use of enumerated data types
- Outline the various components of a C++ function
- Illustrate passing arguments to functions and returning values from functions
- Distinguish between passing by value and passing by reference
- Demonstrate function overloading
- Write in-line functions
- Write prototype functions
- Demonstrate the ability to use functions to refactor code.
- Analyze the concept of C++ classes and objects
- Demonstrate the advantages of using classes in C++.
- Use objects for information hiding
- Write a class and declare an object
- Illustrate the use of the “public”, “protected” and “private” keywords
- Initialize objects through the use of constructor functions
- Demonstrate appropriate use of header and source files
- Show how to pass objects as arguments of functions and return objects from functions
- Examine the array data type
- Define and process a one-dimensional array
- Define and process multi-dimensional arrays
- Define and process arrays of structs and arrays of objects object-oriented data (“struct”, “string”, objects)
- Pass arrays to and from functions
- Create code using inheritance
- Design a program using base and derived classes
- Design a program that illustrates the use of public, private and protected members
- Demonstrate the use of copy constructor to create objects
- Differentiate between a programmer defined copy constructor and a default copy constructor
- Diagram class hierarchies and relationships between classes
- Discuss the allowance of multiple inheritance and the implications
- Examine the use of pointers in C++
- Explain the idea of addresses and pointers
- Illustrate the address-of operator (&)
- Declare and initialize pointers
- Dereference pointers
- Illustrate C++ file Input/Output functions through “stream” classes
- Input from files
- Output to files
Add to Portfolio (opens a new window)
|
|