如何从txt文档中提取数据存入数组中?急求
txt文档中的数据如下:第3950组激光雷达数据:541,434,422,421,422,423,425,426,428,429,441,587,590,592,595,...
txt文档中的数据如下:第3950组
激光雷达数据:541,434,422,421,422,423,425,426,428,429,441,587,590,592,595,598,601,605,608,612,615,618,622,626,630,634,638,642,645,649,654,659,662,667,671,678,682,687,692,698,703,709,715,715,712,715,717,720,723,726,728,731,738,752,755,758,762,765,767,759,749,738,727,716,705,695,685,676,668,660,651,643,636,628,620,612,606,531,517,522,581,574,569,564,558,553,548,543,539,533,529,523,519,515,511,505,431,401,391,387,385,382,377,376,380,384,389,393,397,402,407,412,417,422,427,432,437,439,437,435,433,431,429,427,425,423,421,420,417,416,414,412,411,409,408,406,404,403,402,400,399,398,397,396,395,393,392,392,391,390,389,387,386,386,385,384,384,383,382,382,381,381,380,380,377,377,377,376,376,376,375,375,375,375,375,374,375,375,374,375,374,374,375,374,375,375,375,375,375,376,376,376,377,377,377,380,380,380,381,381,382,382,383,384,384,386,386,386,387,389,390,391,392,393,394,395,396,397,398,399,400,402,403,405,406,408,409,411,413,414,416,417,418,414,407,399,393,386,377,372,366,360,354,349,343,338,333,328,324,320,316,312,308,304,300,296,293,289,287,283,281,278,275,272,269,267,264,262,259,256,254,251,248,246,243,242,240,238,237,237,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191, 39, 40, 38, 38, 38, 38, 39, 38, 38, 37, 39, 39, 38, 40, 40,
激光雷达俯仰角:45.680000
机器人坐标:187.900009,-4.600000 机器人航向角:-1.909000
我想通过vc编程提取 雷达数据 和 俯仰角度 分别存入两个数组
忙着论文,谢谢高手指点!!
以上只是我列出了txt文档中的一组数据,一共几千组呢! 展开
激光雷达数据:541,434,422,421,422,423,425,426,428,429,441,587,590,592,595,598,601,605,608,612,615,618,622,626,630,634,638,642,645,649,654,659,662,667,671,678,682,687,692,698,703,709,715,715,712,715,717,720,723,726,728,731,738,752,755,758,762,765,767,759,749,738,727,716,705,695,685,676,668,660,651,643,636,628,620,612,606,531,517,522,581,574,569,564,558,553,548,543,539,533,529,523,519,515,511,505,431,401,391,387,385,382,377,376,380,384,389,393,397,402,407,412,417,422,427,432,437,439,437,435,433,431,429,427,425,423,421,420,417,416,414,412,411,409,408,406,404,403,402,400,399,398,397,396,395,393,392,392,391,390,389,387,386,386,385,384,384,383,382,382,381,381,380,380,377,377,377,376,376,376,375,375,375,375,375,374,375,375,374,375,374,374,375,374,375,375,375,375,375,376,376,376,377,377,377,380,380,380,381,381,382,382,383,384,384,386,386,386,387,389,390,391,392,393,394,395,396,397,398,399,400,402,403,405,406,408,409,411,413,414,416,417,418,414,407,399,393,386,377,372,366,360,354,349,343,338,333,328,324,320,316,312,308,304,300,296,293,289,287,283,281,278,275,272,269,267,264,262,259,256,254,251,248,246,243,242,240,238,237,237,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191,8191, 39, 40, 38, 38, 38, 38, 39, 38, 38, 37, 39, 39, 38, 40, 40,
激光雷达俯仰角:45.680000
机器人坐标:187.900009,-4.600000 机器人航向角:-1.909000
我想通过vc编程提取 雷达数据 和 俯仰角度 分别存入两个数组
忙着论文,谢谢高手指点!!
以上只是我列出了txt文档中的一组数据,一共几千组呢! 展开
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询