s********1 发帖数: 581 | 1 有一个text file input.txt,内容只有一行,如下:
12345 |
t****t 发帖数: 6806 | 2 so who told you "12345" is an int with 4 bytes?
【在 s********1 的大作中提到】 : 有一个text file input.txt,内容只有一行,如下: : 12345
|
s********1 发帖数: 581 | 3 I wrote it into input.txt as an int. Also it's within the int range. what
else could it be?
【在 t****t 的大作中提到】 : so who told you "12345" is an int with 4 bytes?
|
t****t 发帖数: 6806 | 4 according to your logic, it's also within the 16bit short range. why it is
not a 16bit short?
it's also with a 64bit long long range. why it is not a 64bit long long?
【在 s********1 的大作中提到】 : I wrote it into input.txt as an int. Also it's within the int range. what : else could it be?
|
s********1 发帖数: 581 | 5 I wrote it into the file as an int not as other data format.
【在 t****t 的大作中提到】 : according to your logic, it's also within the 16bit short range. why it is : not a 16bit short? : it's also with a 64bit long long range. why it is not a 64bit long long?
|
t****t 发帖数: 6806 | 6 if you write it into the file "as a short", does it make a difference?
most probably, it doesn't. therefore you didn't write it into the file "as
an int".
【在 s********1 的大作中提到】 : I wrote it into the file as an int not as other data format.
|
f*****Q 发帖数: 1912 | |
b***i 发帖数: 3043 | 8 你输出了字符串呗
你打开写的是一般的文本文件
【在 s********1 的大作中提到】 : I wrote it into the file as an int not as other data format.
|