您的位置首页生活百科 c++ ifstream函数的使用 Simone 发布于 2026-04-28 08:55:28 809 阅读 c++ ifstream函数的使用的有关信息介绍如下:string 是stl里的模板,是为了方便字符串操作,当然不能传,可以用char数组, #include#includeusing namespace std;char a[50];{ while(true) { cin >> a; ifstream fin(a); long temp; fin >> temp; fin.close(); }}手机,没编译,有错请讲