请教一个问题,在VC中怎样把一个文本文件里的数据读入并存储到数组里?!
文本文件是MAPGIS的明码文件。其中的数据如下:1.733216,1.328583,1,1,247,2.000000,2.000000,0.000000,0,6,0.0...
文本文件是MAPGIS的明码文件。
其中的数据如下:
1.733216,1.328583,1,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
15.597249,1.515934,2,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
30.210690,1.515934,3,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
45.948242,1.515934,4,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
62.997257,1.515934,5,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
78.734810,1.328583,6,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
78.547455,13.881153,7,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
62.997257,14.068505,8,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
45.760891,14.068505,9,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0 展开
其中的数据如下:
1.733216,1.328583,1,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
15.597249,1.515934,2,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
30.210690,1.515934,3,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
45.948242,1.515934,4,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
62.997257,1.515934,5,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
78.734810,1.328583,6,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
78.547455,13.881153,7,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
62.997257,14.068505,8,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0
45.760891,14.068505,9,1,247,2.000000,2.000000,0.000000,0,6,0.050000,0,0 展开
1个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询