Statua
Would you like to react to this message? Create an account in a few clicks or log in to continue.


Welcome To Statua. Feel free to message any of our staff.
 
HomeLatest imagesSearchRegisterLog in

 

 Variables

Go down 
AuthorMessage
alex
Admin
Admin
alex


Posts : 28
Points : 10048
Rep : 2
Join date : 2010-06-18
Age : 29
Location : uk

Variables Empty
PostSubject: Variables   Variables Icon_minitimeMon Jul 05, 2010 1:31 am

Variables

Quote :

Full program
_______________________
#include
int main()
{
using namespace std;
int var1;
var1 = 13823687;
cout << var1 << endl;
system("pause");
return 0;
}

Okay so there are only a few new lines in this program in comparison with the last one.


Quote :

int var1;
The int part of this line stands for integer (whole number) and that is the type of variable we are going to use. The var1 is just the name of the variable and we can change this to anything we want.

Quote :

var1 = 13823687;
This line is very simple and im sure you can work out for youself what it will do. You are declaring which variable you want to assign the value to then actually giving it a value
Back to top Go down
http://statua.co.cc
 
Variables
Back to top 
Page 1 of 1

Permissions in this forum:You cannot reply to topics in this forum
Statua :: Coding :: C++ / C#-
Jump to: