Computer Science
CSC2352
C++ Programming

In this course, we will learn the mechanics of editing and compiling programs in C++. We will begin with a discussion of the essential elements of C++ programming: variables, loops, expressions, functions, and string class. Then, we will cover the basics of object-oriented programming: classes, inheritance, templates, exceptions, and file manipulation. We will then review function and class templates and the classes that perform output and input of characters to/from files. This course will also cover namespaces, exception handling, and preprocessor directives. In the last part of the course, we will learn some slightly more sophisticated programming techniques that deal with data structures such as linked lists and binary trees.

C++ Programming: Study Gu...

These are study guides for C++ programming.

items (6)
Password:
DOCUMENT

Study Guide and Review: Introduction and Setup - C...

DOCUMENT

Study Guide and Review: Dealing with Data and Comp...

DOCUMENT

Study Guide and Review: Object-Oriented Programmin...

DOCUMENT

Study Guide and Review: Advanced Concepts - C++ Pr...

DOCUMENT

Study Guide and Review: Memory Management and Test...

DOCUMENT

Study Guide and Review: Useful Examples and C++ Gl...

Unit 1: Introduction and ...

This unit presents a brief history of C++ before addressing the mechanics of editing and compiling a simple program written in C++ using the Eclipse IDE (integrated development environment). We will focus on learning how to write a general format for a C++ program, the meaning of main() function, how to use the cout and cin objects, how to declare and use variables, and how to define simple functions.

items (17)
Password:
DOCUMENT

Flow of Control

WEB RESOURCE

C++ Class: Problem Set 1

WEB RESOURCE

C++ Reference

DOCUMENT

How to Compile a C/C++ Program

DOCUMENT

Introduction to C++

VIDEO

History of Programming

DOCUMENT

History of the C++ Programming Language

VIDEO

C++Tutorial for Beginners 2 - Installation

DOCUMENT

Installing Eclipse CDT

VIDEO

C++Tutorial for Beginners 3 - Hello World

DOCUMENT

C Variables, Data Types

VIDEO

C++ Programming For Beginners - 1: Variables

VIDEO

Taking User Input

WEB RESOURCE

C Programming Exercises, Practice, Solution : Inpu...

DOCUMENT

How to Think Like a Computer Scientist: Using and ...

DOCUMENT

Passing Arguments by Value and by Reference

VIDEO

Headers and Prototypes

Unit 2: Dealing with Data...

In this unit, we will begin to use variables and constants. We will practice with an array, which is a series of elements of the same type placed in contiguous memory locations. Next, we will learn how to use sequences of characters, which can form strings. We will also discuss how the memory of a computer can be understood as a succession of memory cells that can be accessed through the pointer in order to better control program instructions. This unit also covers data structures, which are groups of data elements grouped together under one name. At the end of the unit, we will study the C++ string class, which is useful when handling and manipulating strings of characters.

items (16)
Password:
WEB RESOURCE

Assessment: String, Array and Function

DOCUMENT

C++ Quiz: Problem Sets 2 and 3

DOCUMENT

C++ Quiz: Problem Sets 2 and 3 Answers

DOCUMENT

C Operators

VIDEO

Arithmetic Operators in C and C++

DOCUMENT

C Programming Boot Camp: Strings

DOCUMENT

String Arrays

DOCUMENT

Programming in C++ Arrays

VIDEO

Multidimensional Arrays

DOCUMENT

Strings and Characters

WEB RESOURCE

C Programming Exercises, Practice, Solution

DOCUMENT

Everything you need to know about pointers in C

VIDEO

Pointers; Where C++ Starts to Get Tricky

WEB RESOURCE

C Programming Exercises, Practice, Solution : Poin...

WEB RESOURCE

Enumeration declaration

WEB RESOURCE

Struct declaration

Unit 3: Object-Oriented P...

In this unit, you will learn how to design a class, which is an expanded concept of a data structure that can hold both data and functions. An object is an instantiation of a class, so a class would be the type, and an object would be the variable. Next, we will learn how to handle private and protected members of a class, which is important for sound class design. Note that this unit covers a key feature of C++ classes: inheritance. Inheritance allows classes to inherit objects and functions from other classes. In this unit, we will learn how classes can inherit members from more than one class. We will end this unit with the study of polymorphism or the ability to create a variable, a function, or an object that has more than one form. This brings object-oriented methodologies to their full potential.

items (10)
Password:
DOCUMENT

Lecture 7 Notes: Object-Oriented Programming (OOP)...

VIDEO

C++ Tutorial: Classes and Objects

VIDEO

C++ Tutorial: Inheritance

WEB RESOURCE

Understand Basics of Inheritance in C++ With Examp...

DOCUMENT

Static Attributes

DOCUMENT

Encapsulation, Inheritance and Polymorphism In C++

VIDEO

C++ Tutorial: Polymorphism

DOCUMENT

C++ Programming/Operators/Operator Overloading

SLIDESHOW

Encapsulation and Polymorphism

DOCUMENT

Polymorphic Types and Higher-Order Functions

Unit 4: Advanced Concepts...

This unit begins with a review of function and class templates, which make programs adaptable. We will then learn how to manipulate files. C++ provides the classes that can perform output and input of characters to/from files. This unit will also cover namespaces, which group entities like classes, objects, and functions under a name. We will finish the unit with exception handling and preprocessor directives. Exceptions handle exceptional circumstances in our programs by transferring control to special functions called handlers. At the end of the unit, we will discuss the preprocessor directives, lines included in the code of a program that are not program statements but directives for the preprocessor.

items (9)
Password:
DOCUMENT

C++ Programming: Exception Handling

DOCUMENT

Templates and Inheritance

DOCUMENT

Input and Output

DOCUMENT

C++/Functions and Recursion

DOCUMENT

Commonly used C Preprocessor Directives

VIDEO

Introduction to C++ Templates

VIDEO

Java Tutorial for Beginners, Part 33: Reading Text...

VIDEO

Java Tutorial for Beginners, Part 41: Writing Text...

VIDEO

C++Tutorial for Beginners 50 - Namespaces; Organis...

Unit 5: Memory Management...

In this unit, we will work on memory management and debugging methods. The unit begins with an introduction on general techniques in C++ program memory management. We will then learn how to design testing cases to cover the program under testing and learn commonly used techniques for debugging C++ programs.

items (4)
Password:
DOCUMENT

Memory Management

DOCUMENT

Software Unit Test Policy

DOCUMENT

Coverage Analysis

VIDEO

Debugging in Eclipse: Learn Java Tutorial for Begi...

Unit 6: Useful Examples a...

In this unit, we will work on coding skills using two useful data structures: linked list and binary tree. The first assessment you will encounter below will teach you to program the binary tree. The second assessment will ask you to be creative with coding linked lists and binary trees.

items (6)
Password:
WEB RESOURCE

C++ GLOSSARY

DOCUMENT

Binary Tree Exercise

DOCUMENT

Binary Tree Exercise: Instructions

DOCUMENT

Binary Trees

WEB RESOURCE

STL Containers With Examples

DOCUMENT

Vectors in C++