利用MFC在控件内将txt中的数据画图
时间:2017-07-23 14:09:59
收藏:0
阅读:239
1:采集txt文件中的数据测试程序如下:

#include "stdafx.h" #include <fstream> #include "iostream" using namespace std; int main(int argc, char* argv[]) { FILE *fp; float j; fp=fopen("c1_p1_x.txt","r"); for(int i=1;i<=105;i++) { fscanf(fp,"%f",&j); cout<<j<<endl; } fclose(fp); return 0; }
原文:http://www.cnblogs.com/lovemi93/p/7224319.html
评论(0)