C++ Tutorial
Short Description
C++ Tutorial. CHRISTOPHER G. HEALEY. North Carolina State University. 1 BASIC PROGRAM STRUCTURE. A C++ program. 1. is made up of a mainline procedure called …
Website: www.csc.ncsu.edu | Filesize: 94kb
Content
C++ Tutorial
CHRISTOPHER G. HEALEY
North Carolina State University
1 BASIC PROGRAM STRUCTURE
A C++ program1 is made up of a mainline procedure called main(), and zero or more additional procedures to
perform operations within your program. When a program starts execution, it begins by calling the mainline procedure.
Source code for a program can be contained in a single file, or split across multiple files. Additional functionality may
also be provided via external libraries. The source code is compiled into object files. The object files are then linked
together to produce an executable program.
2 OPERATORS
Every computer language provides a set of built-in functions or operators which allow you to perform simple operations
such as addition, subtraction, increment, and decrement. C++ provides a useful set of operators to perform basic
arithmetic, operator grouping, indirection, and binary logic. An expression is a combination of variables, constants,
and operators. Every expression has a result. Operators in C++ have precedence associated with them; this means expressions
using operators are not evaluated strictly left to right. Results from the operators with the highest precedence
are computed first. Consider the following simple C++ expression:
6 + 3 * 4 / 2 +…
Get the file Download here
Related Books:Related Searches: basic arithmetic, ncsu edu, addition subtraction, c tutorial, north carolina state university
Comments
Leave a Reply