C++
Tutorial. For Beginners
This usage-oriented
online C++ tutorial is intended to help you get your C++ experience on the right
foot. Using some Macromedia Flash animations where needed, you will find here
all the required information to get efficiently started on your usage of C++
language, independently of the platform you are planning to use it on. After a
short introduction aimed at getting you started with the required tools to write
and build C++ code source into executable binaries, you will get thrown into the
basics of C++ and its control structures, as an algorithmic starting point.
Still oriented on the usability, you will be pointed, along with detailed
explanations, to the C-style standard functions that can be used in your C++
source code to easien usual tasks. The tutorial will then lead you into the
Object Oriented paradigm on C++ language, which will be a must-have in order to
understand all the STL(Standard Template Library)-related info that you will
find in the last part of this tutorial.
After having followed this tutorial, you will be
perfectly able to develop and understand Command-line applications written in
C++.
-
My first C++ Program - Create your
first C++ program and learn about its structure: the main() function and the
statements
-
How to compile and run C++ programs
- Learn how to write and compile C++ programs using different IDEs
-
DEV C++ Tutorial
- DEV C++ Tutorial .
-
Visual C++ Tutorial
- Visual C++ Tutorial(Flash animation explain how to create and
compile console C++ programs under Microsoft Visual Studio).
-
Visual C++.NET 2003 Tutorial - Visual C++.NET 2003 Tutorial. Step by step
animation use
Basics of C++
-
Variables. Data Types - Learn about
variables, constants, keywords, identifiers and fundamental data types
-
Math Operations - Learn about operators
precedence and language-specific operators
-
Basic Input/Output - Use the basic I/O functions to
communicate with the user
Control structures
-
Conditional structure: If / Else - Learn
how to structure your programs using if/else and nested ifs
-
Iteration structures
-
For loop - The for structure and the
infinite loop
-
While loop - The while structure
-
Do While loop - The do structure
-
The selective structure: switch - Learn
to avoid nested ifs by using the switch structure
-
Function in C++ - Basic information
about C++ functions: declaration, arguments, and parameter passing mechanism
Compound Data Types
-
Arrays - Learn to store data in simple or
multidimensional arrays, as well as creating char strings
-
Pointers - The basics of dynamic memory:
pointers and dynamic arrays
-
Data Structures - Learn to create your own
data type
C style functions in C++
-
Char functions - Work with
characters using the classical C-style functions
-
String functions - Learn to
manipulate strings using the functions in cstring
-
Math functions - Automatically compute
trigonometric, logarithmic, exponential and other functions using the standard
cmath
-
Random functions - Generate
pseudo-random numbers based on the system clock
-
Date and time - Learn to work
with different date&time variables using the standard functions
Object Oriented Programming
-
Classes and Objects - Learn the basics of
object-oriented programming: abstract data types, objects, classes, methods and
properties
-
Encapsulation : private, public and protected
sections - Learn to mantain the integrity of the objects by
encapsulating the data values and member functions
-
Inheritance - Create your own class library
(hierarchy of classes) and learn how objects inherit properties and methods
from their parents
-
Polymorphism and Virtual functions - Learn
about abstract classes, virtual functions and operator and function overloading
The Standard Template Library (STL)
-
STL::cout - Learn to use the built in stream for
standard screen output
-
STL::ifstream - Learn to read data from plain
text files
-
STL::ofstream - Learn to save your application's
data in plain text files
-
STL::string - Learn about the standard string
class and string-based operations
-
STL::vector - Learn the most efficient way to
implement arrays using the standard vector class
-
STL::queue - Learn to use the standard queue class
-
STL::<iomanip> Functions - Format the
input/output of data using the built in manipulators
Data Structures