Ok i have a few questions, im going through an "eBook", and over all it describes thing very will without skipping minor details.
Well one thing it did seem to skip so far is i assume default variables.
From my understanding, without enum data types, there is Bool, Char, Int, and Float correct?
Now my question is reguarding default data types i assume. It showed some examples all of a sudden involving stuff like:
andCode:double myVariable = 50
dont mind the numbers in those, im just wondering if short, long, double, ect.. are data types in themselves? Or if they are defaults for other data types.Code:unsigned short myVariable = 100 long myVariableT = 100
The way i assume it is, is that double has the default data type of float, and plain long and short (signed or unsigned) have the default data type of Int.
is the same asCode:long myVariable = 100
Im just assuming this, and assuming im right i just wanna make sure. I understand signed and unsigned in terms of numbers, long and short in terms of bytes and numbers (and possibly letters lol), im just confused with the default data type of just saying long myVaraible or double myVariable.Code:signed long int myVariable = 100
Also, they didnt go over double, can someone give me a minor quick rundown? just as simple as "its a bigger version of float, allowing for more numbers".
correct format? (assuming double even involves float ofcourse).Code:unsigned long double float = myFloat 5000.5894
Thanks to any questions you choose to reply to , you guys rock hehe. Im lovin C++ too, and ofcourse i know i only know 1 billionth of its possibilities, but none the less all the simple stuff and its potential vs my old potentialess language lol. Thanks all!