摘要: #include <iostream> using namespace std; int readfile(string name){ FILE *file=fopen(name.c_str(),"r"); if(file==NULL){ perror("文件打开失败"); return 1; } 阅读全文
posted @ 2024-12-29 09:49 最后一个还有我 阅读(22) 评论(0) 推荐(0)
摘要: #include <iostream> #include <fstream> using namespace std; int main(){ // char data[100]; // ifstream a; // a.open("j.txt"); // a>>data; // cout<<dat 阅读全文
posted @ 2024-12-29 09:22 最后一个还有我 阅读(10) 评论(0) 推荐(0)