Welcome to C++ Class!
So, you are interested in learning to write C++ programs? Well, welcome to the right place, [Shadow-ofDeath]'s C++ class. You will learn to do everything from use the increment operator to creating struct arrays.
2. C++ Class Variable Types
3. C++ Class Basics
To create the code, you only need one thing: a text editor. The best kind if you can't afford the entire workspace is just the Notepad in the accessories menu on most computers. If you really want to get involved you will need a C++ compiler and linker, but these can be quite expensive. If you do not have a compiler but wish to compile a program, I can compile it for you and possibly even email you the executable file it makes.
The compiler just takes a the code that you have written and turns it into something that the computer can read and understand. The linker takes this computer code and finds the necessary libraries that are needed to run it. It takes the .obj file (object code) and makes it into a .exe file (executable).
The thing that makes C++ a good programming language to learn is it's flexiblity, because of the fact that it is an OOP, or Object Oriented Language. This means that you are able to create programmed objects, that are just computer replications of real-world objects. You can even create your own data types, that contain different real data types inside them. Another wonderful feature is the ability of operator overloading, you can teach things like "+" to do new things, instead of their normal operations.
C++ Class Variable Types
These are the different standard variables availible in C++.
Note: If a variable is unsigned, it will always have a value greater than or equal to 0.
To continue on with this lesson continue to: C++ Class Variable Types
C++ Class Basics
Here is an example of a working C++ program:
using namespace std;
cout << "Hello there, how are you today?"; //A little message
To continue on with this lesson continue to: C++ Class Basics
Go or return to:
- Computer Science
- Elftown Academy
|Show these comments on your site|