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

Share | 
 

 Variables

View previous topic View next topic Go down 
AuthorMessage
alex
Admin
Admin
avatar

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

PostSubject: Variables   Mon 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
View user profile http://statua.co.cc
 
Variables
View previous topic View next topic Back to top 
Page 1 of 1
 Similar topics
-
» Why we can't use this variables codes in the Templates
» two variables in one variable
» Creating the account (URL) globally and using that variable where ever it needed
» Entering a time stamp in comment / text box?
» Setting & getting variable values

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