Cape Breton University
Instructor: Dr. George Chen Office: A129 G
Phone: 563-1825 Email: george_chen@cbu.ca
Webpage: http://courseware.cbu.ca/moodle (homework and solutions)
Office hour: Mon., Wed. Fri. 10:30-11:20; Mon. Tue. 1:30-2:20
Textbook: Class notes + three reference books (reserved in library)
1. Introduction to Programming with C++, Y. Daniel Liang
2. Absolute C++, Walter Savitch
3. Starting Out with C++, Tony Gaddis
Major topics include:
1. Introduction: computer system, computer languages and C++, running a program, testing and debugging
2. C++ Basic and Control Structures: constants and variables, assignment statements, simple input and output, data type and expression, arithmetic operators, simple control structures, compound statements and blocks, relational operators, logical operators, multiway selection, while loops and for loops, break statement-designing loops.
3. Functions: Predefined functions, programmer-defined functions and procedural abstraction, argument and parameter, local variables and call by value, overloading function names, void functions, call by reference, random number generation, scope rules.
4. Arrays: one-dimensional arrays, declaring and referencing arrays, array I/O, problem-solving using arrays, array as function arguments, searching and sorting data, simple file input and output.
5. Pointers: pointer variable declarations and initializations, pointer operators, passing arguments to functions with references and pointers.
6. Classes: class definitions and members, constructors, public and private, developing a program with multiple files.
Marking Scheme:
Labs 15% Lab Quiz 5%
Assignments 15% Midterm 20%
Final 45%
Remark: