Friday, September 10, 2010 10:47:21Login · Register
 

    Challenge Activity
09:22:09 - l0gan_l135
     - Completed real [2]
07:42:10 - l0gan_l135
     - Completed real [3]
05:55:17 - aspen_23
     - Completed recon [1]
02:27:21 - GemaRastem
     - Completed basic [2]
02:26:21 - GemaRastem
     - Completed basic [1]
02:21:00 - GemaRastem
     - Completed recon [3]
01:55:39 - GemaRastem
     - Completed recon [2]
01:43:45 - GemaRastem
     - Completed recon [1]
01:31:59 - veerendragautam2009
     - Completed decrypt [3]
01:26:45 - veerendragautam2009
     - Completed decrypt [2]
01:25:16 - veerendragautam2009
     - Completed decrypt [1]
12:31:00 - veerendragautam2009
     - Completed basic [1]
12:26:04 - veerendragautam2009
     - Completed recon [6]
11:13:29 - veerendragautam2009
     - Completed recon [3]
10:59:23 - veerendragautam2009
     - Completed recon [1]
09:30:05 - sirEgghead
     - Completed real [4]
 

    Scoreboard Top 20
UserPoints
Abhineet4795   
auditorsec4795   
ne0114795   
Null Set4795   
blandyuk4780   
bluechill4750   
Teddy4730   
TurboBorland4475   
Qwexotic4460   
tiiger11114205   
preet4180   
LiquidFusi0n4175   
OnlyHuman4125   
samthg4110   
satishek3900   
pilchdragon3660   
Override3655   
chronic123640   
sirEgghead3625   
dash803590   
 

    Login
Username

Password



Not a member yet?
Click here to register.

Forgotten your password?
Request a new one here.
 

    Users Online
· Guests Online: 12

· Members Online: 3
l0gan_l135, Null Set, TCMuffin

· Members on IRC: 10
Xires, TurboBorland, ryan1918, Polynomial, louve, LK, IFailStuff, epoch_qwert, connection, bubatime

· Bots Online: 0

· Total Members: 1,491
· Newest Member: elostaz3omda
 

 

 

 

    Top 10 Forum Posters
UserPosts
bluechill918   
Qwexotic699   
cruizrisner487   
Null Set363   
TurboBorland335   
madf0x311   
Stormc1nd3r308   
auditorsec302   
Override238   
jakecrepinsek235   
 

    Affiliates
 

C++ Tutorial 1: The Basics
     
[i]C++ Tutorials: Basics[/i

C++ is an interesting language. It is very powerful and very expandable. C++ has 5 basic types:

char

string

int

float

double

These all can contain different things.

ints contain integers.

floats contain integers with decimals

doubles can contain either ints or floats

string contains a string or characters (or chars)

char contains a character (and an array of characters when defining them a special way, more on this later).

In C++ there are things called functions:

Code

someType SomeFunctionName(FunctionParameterType FunctionParameterName)
{
    // do something here
}





Comments are lines which are used to explain what a certain line does or prevent code from being compiled or used (in the case of a header file).

In C++ there is also something called classes. Classes are containers for functions and are used for objects. An object could be a keyboard handler, a robot in a game or a type called a string. :)

We will talk about classes later on.

C++ also has namespaces. Namespaces are used to organize functions, classes, and variables for a certain thing. For example. A namespace called level1 may contain the following:

Function loadLevel();

Variable LevelSavePoint;

And Class Level1;

More on namespaces later.

In C++ we also use semicolons ( ; ). These mark the end of a line of code. These semicolons (unlike in BASIC) allow use to do things like the following;

Code

int semicolonexample = 0; semicolonexample++;





as you can see with semicolons you can compress multiple lines into one if you really want to (though I discourage this and will frown at you if you do this in FrostOS if you do not have a very very good reason to.)
 
Comments
 
#1 | PhAntom H@x on 02/11/2010 22:47
Thanks for this! Nice post and a good clear read
#2 | Torrment on 04/03/2010 04:14
thanks was clear and precise
 
 
Post Comment
 
Please Login to Post a Comment.
 
 
Ratings
 
Rating is available to Members only.

Please login or register to vote.

Awesome! Awesome! 100% [1 Vote]
Very Good Very Good 0% [No Votes]
Good Good 0% [No Votes]
Average Average 0% [No Votes]
Poor Poor 0% [No Votes]