linux下读写文件

论坛 期权论坛 编程之家     
选择匿名的用户   2021-6-2 20:29   2607   0
// 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 人收藏
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

积分:3875789
帖子:775174
精华:0
期权论坛 期权论坛
发布
内容

下载期权论坛手机APP