#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<iostream>
#include<fstream>
using namespace std;
int main()
{
string ye[12] = { "ye.001",\
"ye.002",\
"ye.003",\
"ye.004",\
"ye.005",\
"ye.006",\
"ye.007",\
"ye.008",\
"ye.009",\
"ye.010",\
"ye.011",\
"ye.012"};
ifstream inFile1(ye[0], ios::in|ios::binary);
inFile1.close();
system("pause");
return 0;
}
编译无法通过,是string对象转字符串的问题,我不知道怎么修改?
谢谢大家。
[注意]传递专业知识、拓宽行业人脉——看雪讲师团队等你加入!