linux下读写文件

mac2025-09-10  20

// constructing threads #include <iostream> // std::cout #include<sys/time.h> #include<queue> #include <string.h> #include <fstream> using namespace std; int main () { ifstream ifs("../calcu/result_CIF_10imgs_miniSize128.txt"); string str; string temp; int i = 0; while(getline(ifs, str)) { temp = str; cout <<temp<<endl; } return 0; return 0; }

 

最新回复(0)