随笔分类 -  C语言文件操作

摘要:#include "stdafx.h" #include #include #include #include using namespace std; int main() { FILE *fp; errno_t err = fopen_s(&fp, "D://1.TXT", "rt"); //读取文件数据 cout << err << endl; char s[2]; int in... 阅读全文
posted @ 2019-06-12 12:45 大芝麻 阅读(1274) 评论(0) 推荐(0)
摘要:#include "stdafx.h" #include #include #include #include using namespace std; typedef struct _MyDataTime { int Index;//保留 int Year; //年,这个日期为班次开始时的日期 int Month; //月 ... 阅读全文
posted @ 2019-06-12 12:43 大芝麻 阅读(818) 评论(0) 推荐(0)