I'm running against this error:
int temp = 0789;
error C2041: illegal digit '8' for base '8'
For what I can understand is that the compiler understands any number that begins with 0 like 0123 to be octal. But how can I tell the compiler to just take it with the 0 in front?
Aucun commentaire:
Enregistrer un commentaire