|
| This tutorial series is designed for everyone: even if you've never programmed before or if you have extensive experience programming in other languages and want to expand into C++! It is for everyone who wants the feeling of accomplishment from a working program. |
| |
| 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... |
| 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... |
| 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... |
| Looping in C++ |
| Looping is probably one of the most important programming concepts in existence. There are... |
| break & continue statements |
| Break Statement The break command can be used to exit a loop at any time. Here is one of the above examples that will ... |
| Switch Case Statement |
| Switch case statements are a substitute for long if statements that compare a variable to several "integral" values ("integral&... |
| 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... |
| 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. ... |
| 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... |
| Strings in C++ |
| Strings are arrays of chars. String literals are words surrounded by double quotation marks. "This is a static str... |
| 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... |
| 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... |
| 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 colle... |
| 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... |
| 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... |
| 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... |
| 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... |
| 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''.) ... |
| 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... |
| 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... |
|
|