Wiki:
Page name: C++ Class [Logged in view] [RSS]
2007-07-01 19:29:19
Last author: Firenze
Owner: Shadow-ofDeath
# of watchers: 3
Fans: 0
D20: 14
Bookmark and Share
<img:stuff/ETA_Computer_Science.jpg>


C++ Class


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.


Teacher: [Shadow-ofDeath]


<img:stuff/ETA_divider.jpg>

Students:


1.
2.
3.
4.

<img:stuff/ETA_divider.jpg>

Brief Outline:


1. Introduction
2. C++ Class Variable Types
3. C++ Class Basics

<img:stuff/ETA_divider.jpg>

Introduction


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.

<img:stuff/ETA_divider.jpg>

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

<img:stuff/ETA_divider.jpg>

C++ Class Basics


Here is an example of a working C++ program:

#include <iostream>
using namespace std;

void main()
{
cout << "Hello there, how are you today?"; //A little message
}

To continue on with this lesson continue to: C++ Class Basics

<img:stuff/ETA_divider.jpg>

Go or return to:
- Computer Science
- Elftown Academy

Username (or number or email):

Password:

2008-08-09 [Shanarelle]: do you not need to close the >>s after the quotation marks?

Show these comments on your site

Elftown - Wiki, forums, community and friendship. Sister-site to Elfwood