 |
| Introduction to C++ |
| C++ is a programming language--it will allow you to control your computer, making it do what you want it to do. This programming tutorial seri...more » |
|
 |
| |
|
 |
| Variables in C++ |
| A variable of type char stores a single character, variables of type int store integers (numbers without decimal places), and variables of typ...more » |
|
 |
| |
|
 |
| if statement in C++ |
| The ability to control the flow of your program, letting it make decisions on what code to execute, is valuable to the programmer. The if stat...more » |
|
 |
| |
|
 |
|
 |
| |
|
 |
|
 |
| |
|
 |
| Switch Case Statement |
| Switch case statements are a substitute for long if statements that compare a variable to several "integral" values ("integral&...more » |
|
 |
| |
|
 |
| C++ Functions |
| A function is a sub-program that your program can call to perform a task. When you have a piece of code that is repeated often you should put i...more » |
|
 |
| |
|
 |
| Pointers in C++ |
| A pointer is a variable that holds a memory address. It is called a pointer because it points to the value at the address that it stores. ...more » |
|
 |
| |
|
 |
| Arrays in C++ |
| Arrays are used to store a number of items in one single variable. They are usually placed in the same segment of memory with accessible elemen...more » |
|
 |
| |
|
 |
| Strings in C++ |
| Strings are arrays of chars. String literals are words surrounded by double quotation marks. "This is a static str...more » |
|
 |
| |
|
 |
| Structures in C++ |
| Structures are a way of storing many different values in variables of potentially different types under the same name. This makes it a more mod...more » |
|
 |
| |
|
 |
| C++ File I/O |
| C++ has two basic classes to handle files, ifstream and ofstream. To use them, include the header file fstream. Ifstream handles file input (re...more » |
|
 |
| |
|
 |
| Typecasting in C++ |
|
Type Casting causes the program to treat a variable of one type as though it contains data of another type. Normally, this is used with a col...more » |
|
 |
| |
|
 |
| C++ Classes |
| C++ is a bunch of small additions to C, with a few major additions. One major addition is the object-oriented approach (the other addition is s...more » |
|
 |
| |
|
 |
| Recursion in C++ |
| recursion is when a function calls itself. That is, in the course of the function definition there is a call to that very same function. At fir...more » |
|
 |
| |
|
 |
| Inheritance in C++ |
| Creating or deriving a new class using another class as a base is called inheritance in C++. The new class created is called a Derived class a...more » |
|
 |
| |
|
 |
| Initilization Lists in C++ |
| Start of an Object's Lifetime: In C++, whenever an object of a class is created, its constructor is called. But that's not all--its pare...more » |
|
 |
| |
|
 |
| Enumerated Types in C++ |
| In C and C++, enum types can be used to set up collections of named integer constants. (The keyword enum is short for ``enumerated''.) ...more » |
|
 |
| |
|
 |
| Templates in C++ |
| C++ Class Templates are used where we have multiple copies of code for different data types with the same logic. If a set of functions or clas...more » |
|
 |
| |
|
 |
| C++ Preprocessors |
| There are many different usage for the C/C++ preprocessor, but first of all, heres a little background on what they are, and what theyre used f...more » |
|
 |
| |
|