whats the purpose of "int" and what dose it mean, ive been reading a tutorial forever and it dosent explain y this was placed in the hello world project.
whats the purpose of "int" and what dose it mean, ive been reading a tutorial forever and it dosent explain y this was placed in the hello world project.
this is my signature. k thx
int is just a class indicator which indicates the superficial value within the binary mechanisms. Used properly, one may be able to write professional applications. Also, the third bit within the cort is to be set when there is a conflict within the stream of binary.
-Jake
Or in english, it represents integer (a number). Hence, the names declared after it, are names that represent an integer. The values of the names can be changed throughout the program. However, the only problem is that int's have a limited range. Something in the 2 billions to -2 billions.
Code:#include <iostream.h> int main() { int number;//declares the variable named number number=4;//sets the value of number to 4 cout<<endl<<number<<endl;//will output a newline,4, than another new line number=6;//sets the value of number to 6 cout<<number<<endl;//will output 6 than a new line cin>>number;//asks you to input a value for number cout<<number<<endl;//will output what you inputted than a newline return 0; }
An integer is a type. It stores whole numeric values and takes up 32 bits in size. It can store data between -2147483647 and 2147483647. The maximum value unsigned is 0xffffffff.
"ive been reading a tutorial forever and it dosent explain y this was placed in the hello world project."
You need to find a new tutorial.
Um, Jake, I think you lost me there.Originally posted by Jake55654
int is just a class indicator which indicates the superficial value within the binary mechanisms. Used properly, one may be able to write professional applications. Also, the third bit within the cort is to be set when there is a conflict within the stream of binary.
-Jake
>Also, the third bit within the cort is to be set when there is a conflict within the stream of binary.
Wow, I did not know that.
In terms of why this is in a 'hello world' application; you're probably talking about 'int main'. Why this is done is covered in the FAQ.
Demonographic rhinology is not the only possible outcome, but why take the chance
yes azuth, thats what im talking about.
this is my signature. k thx
for the sake of explaination nonetheless, the int that preceeds the function name 'main' indicates the return type of the function at hand... other examples would be...
etc...Code:void foo (void); char blah (void);
oh and btw, rmullen3, you skate don't you? super kewl!
hasafraggin shizigishin oppashigger...