This is perhaps very funny question.
I write with text editor the integers in file:
1189
9456
0032
0456
etc.
It's need four-digitals to write. In program I open the file whit fstream and read to string, after convert to int.
I suddenly found first '0' number will to octal convert.
Will 0032 octal or decimal?
A preceding 0 only makes it an octal number if we're talking about literals.
In your case it depends on which base you told the string conversion function to use (if you don't know, then it's base 10).