I am a beginning C++ programmer and I would like to know one thing about variables that is not clear in the book I have.
When I declare a variable as double do I have to include a decimal?
for example in the book they use :
double speed;
speed = 139000.0;
if you enter speed = 139000 , will it not still remain a double value since it was declare as double?
This last example my better illustrate my question.
suppose I declare the wide char variable 'a' like so:
wchar_t = ch;
ch = L'a';
since I already declared the variable as wide, why do I have to still include the L in front of 'a'?
does this mean that my double variable is converted to an int value because it has no decimal?
