摘要: #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 大芝麻 阅读(1241) 评论(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 大芝麻 阅读(804) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h" #include #include #include #include #include using namespace std; int main() { time_t t; //秒时间 tm local; //本地时间 tm* gmt; //格林威治时间 char buf[128] = { ... 阅读全文
posted @ 2019-06-12 12:38 大芝麻 阅读(1725) 评论(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 09:51 大芝麻 阅读(236) 评论(0) 推荐(0) 编辑
摘要: #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 09:24 大芝麻 阅读(1498) 评论(0) 推荐(0) 编辑