1. ## int

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.

2. 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

3. 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;
}```

4. 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.

5. 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
Um, Jake, I think you lost me there.

>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.

6. 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.

7. yes azuth, thats what im talking about.

8. 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...

Code:
```void foo (void);
char blah (void);```
etc...

oh and btw, rmullen3, you skate don't you? super kewl!

Popular pages Recent additions