B
brt
Unregistered / Unconfirmed
GUEST, unregistred user!
这是一个股票数据中的一组:
_______________________________________________
58 01 36 30 30 33 33 38 00 D6 E9 B7 E5 C4 A6 CD
D0 00 02 00 64 00 77 BE 1F 3D 00 00 00 00 84 D7
87 41 00 00 00 00 D0 4B 06 41 66 66 36 41 7B 14
36 41 E1 7A 34 41 7B 14 36 41 52 B8 32 41 00 00
00 00 B0 54 04 41 00 00 00 00 A2 83 3C 41 00 00
00 00 00 78 AE 40 CD CC 34 41 00 00 34 41 0A D7
33 41 00 00 00 00 00 D4 B7 40 00 00 00 00 00 40
8F 40 00 00 00 00 00 40 AF 40 9A 99 35 41 7B 14
36 41 66 66 36 41 00 00 00 00 00 40 8F 40 00 00
00 00 00 00 59 40 00 00 00 00 00 40 8F 40 00 00
00 00 A0 A2 E7 40 00 00 00 00 10 D8 FC 40
_______________________________________________
存储格式如下:
//每174字节为一个信息
id:short;//长度2
code:char;//长度7 array[0..6] of char
name:char;//长度9 array[0..8] of char
type:short;//长度2
hand:short;//长度2
profit:float;//长度4
stock:double;//长度8
vol5:double;//长度8
last:float;//长度4
open:float;//长度4
close:float;//长度4
hight:float;//长度4
low:float;//长度4
vol:double;//长度8
fund:double;//长度8
chg:double;//长度8
mj1,mj2,mj3:float;//长度4*3
ml1,ml2,ml3:double;//长度8*3
mcj1,mcj2,mcj3:float;//长度4*3
mcl1,mcl2,mcl3:double;//长度8*3
buy:double;//长度8
sale:double;//长度8
____________________________________
我用stream读时,读到profit时数据就不对了.
应该是3.9e-2,但读的是2.192612e-41,好象是
往后读两个字节,不知为什么。
_______________________________________________
58 01 36 30 30 33 33 38 00 D6 E9 B7 E5 C4 A6 CD
D0 00 02 00 64 00 77 BE 1F 3D 00 00 00 00 84 D7
87 41 00 00 00 00 D0 4B 06 41 66 66 36 41 7B 14
36 41 E1 7A 34 41 7B 14 36 41 52 B8 32 41 00 00
00 00 B0 54 04 41 00 00 00 00 A2 83 3C 41 00 00
00 00 00 78 AE 40 CD CC 34 41 00 00 34 41 0A D7
33 41 00 00 00 00 00 D4 B7 40 00 00 00 00 00 40
8F 40 00 00 00 00 00 40 AF 40 9A 99 35 41 7B 14
36 41 66 66 36 41 00 00 00 00 00 40 8F 40 00 00
00 00 00 00 59 40 00 00 00 00 00 40 8F 40 00 00
00 00 A0 A2 E7 40 00 00 00 00 10 D8 FC 40
_______________________________________________
存储格式如下:
//每174字节为一个信息
id:short;//长度2
code:char;//长度7 array[0..6] of char
name:char;//长度9 array[0..8] of char
type:short;//长度2
hand:short;//长度2
profit:float;//长度4
stock:double;//长度8
vol5:double;//长度8
last:float;//长度4
open:float;//长度4
close:float;//长度4
hight:float;//长度4
low:float;//长度4
vol:double;//长度8
fund:double;//长度8
chg:double;//长度8
mj1,mj2,mj3:float;//长度4*3
ml1,ml2,ml3:double;//长度8*3
mcj1,mcj2,mcj3:float;//长度4*3
mcl1,mcl2,mcl3:double;//长度8*3
buy:double;//长度8
sale:double;//长度8
____________________________________
我用stream读时,读到profit时数据就不对了.
应该是3.9e-2,但读的是2.192612e-41,好象是
往后读两个字节,不知为什么。