通过利用VC类库的CFILEDIALOG类选择打开数据文件RMC.TXT,解析出其中的时间和经纬度数据,在一个对话框中显示出时间和经纬度,每次只显示一个时间点的数据,通过点击对话框中的继续按钮处理显示下个点的数据。当处理到文件尾时给出提示。
RMC.TXT的一小部分内容如下(一共很多)
$BDRMC,153130.885,3946.4648,N,11625.4385,E,44.5,0.2,0.0,213,1,3,W,*54
$BDRMC,153130.947,3946.4658,N,11625.4386,E,44.5,0.2,0.0,213,1,3,W,*59
$BDRMC,153131.010,3946.4669,N,11625.4387,E,44.5,0.2,0.0,213,1,3,W,*50
$BDRMC,153131.072,3946.4672,N,11625.4385,E,44.5,0.2,0.0,213,1,3,W,*5c
$BDRMC,153131.135,3946.4675,N,11625.4382,E,44.5,0.2,0.0,213,1,3,W,*5e
$BDRMC,153131.197,3946.4686,N,11625.4383,E,44.5,0.2,0.0,213,1,3,W,*5b
$BDRMC,153131.260,3946.4658,N,11625.4382,E,44.5,0.2,0.0,213,1,3,W,*52
$BDRMC,153131.322,3946.4669,N,11625.4382,E,44.5,0.2,0.0,213,1,3,W,*57
$BDRMC,153131.385,3946.4694,N,11625.4384,E,44.5,0.2,0.0,213,1,3,W,*5e
$BDRMC,153131.447,3946.4719,N,11625.4386,E,44.5,0.2,0.0,213,1,3,W,*51
$BDRMC,153131.510,3946.4730,N,11625.4383,E,44.5,0.2,0.0,213,1,3,W,*5c
$BDRMC,153131.572,3946.4733,N,11625.4385,E,44.5,0.2,0.0,213,1,3,W,*5d
$BDRMC,153131.635,3946.4721,N,11625.4385,E,44.5,0.2,0.0,213,1,3,W,*5e
$BDRMC,153131.697,3946.4716,N,11625.4384,E,44.5,0.2,0.0,213,1,3,W,*53
$BDRMC,153131.760,3946.4704,N,11625.4384,E,44.5,0.2,0.0,213,1,3,W,*59
$BDRMC,153131.822,3946.4707,N,11625.4382,E,44.5,0.2,0.0,213,1,3,W,*55
$BDRMC,153131.885,3946.4710,N,11625.4380,E,44.5,0.7,0.0,196,1,3,W,*57
$BDRMC,153131.947,3946.4720,N,11625.4385,E,44.5,0.7,0.0,196,1,3,W,*5e
$BDRMC, 153130.885, 3946.4648,N, 11625.4385,E, 44.5,0.2,0.0,213,1,3,W, *54
开始符号为$ 这个是时间 这个是纬度 经度 后面的不用管了 结尾符号*
请哪位好手帮忙给解决一下 由于我比较菜 最好把整个程序帮忙贴出来并讲解一下
非常感谢 谢谢 至少给个思路也行啊 |