您的位置首页生活百科

c++ ifstream函数的使用

c++ ifstream函数的使用

的有关信息介绍如下:

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(); }}手机,没编译,有错请讲