Fundamental Elements of C++

CS-150, Learning Objectives


Note: These topics do not appear in the same order as they are presented in your textbook.

Microsoft Visual C++ IDE (Visual Studio)

Be able to create a Win32 Console Application project.

Be able to enter, compile and test C++ code in Visual Studio.

Be able to identify and correct compilation errors in Visual Studio (know where error messages appear).

Be able to get help online in Visual Studio.

Program Parts and Format

Be able to describe the fundamental parts (sections) of a C++ program (this may not be in your book).

Know the two ways in which comments can be denoted in C++ programs.

Simple Console Stream Input/Output

Be able to explain what is meant by the term console.

Know which header file must be included in your programs for simple console stream input and output (IO).

Be able to describe and use the general C++ stream output syntax.

Know how to cause a newline to be output.

Be able to describe and use the general C++ stream input syntax.

Know which header file must be included in your programs for formatted (manipulated) output.

Know how to set the output field width.

Know how to set the output precision.

Numerical Data Types

Be able to describe what we mean by the term variable in the context of C++.

Be able to describe and use the general C++ variable definition syntax.

Be able to describe the type of values that can be stored in C++ int variables.

Know the general range of values that can be stored in Microsoft's C++ int variables.

Be able to describe the type of values that can be stored in C++ double variables.

Know the general range of values that can be stored in Microsoft's C++ double variables.

Know how to assign the results of computations to variables.

Know the meanings and precedence of the following C++ operators: +, -, *, / and % (I don't recommend you worry about learning the special C++ operators: ++, --, +=, -= and *= yet).

Know how to use parentheses to effect the order of evaluation of C++ expressions.

Be able to describe the functional difference between a C++ variable and constant.

Be able to give an example were a C++ constant might be useful.

Be able to describe and use the general C++ constant definition syntax.

Know what is meant by the term magic numbers and why they are considered bad.

Library Functions

Know how to take the square root of a number and how to raise a number to a power in C++.

Know which header file must be included in your programs to use the common mathematical functions listed in Table 3.4 of your textbook in your C++ programs.

C++ Strings (not in your textbook)

Be able to describe a give an example of a C++ string.

Know which header file must be included in your programs to use C++ strings.

Be able to extract a substring from a C++ string.

Be able to concatenate C++ strings.

Introduction to Programmer Defined Functions

Be able to recognize the use of user defined functions in a program.

Be able to recognize the use of member functions in a program.


Send comments and suggestions about these objectives to: Dr. Charles S. Tritt
This page last updated 9/3/02