int readFile()
{
ifstream inFile("input.txt");
if (!inFile.is_open()) {
cout << "infile opening error";
return 1;
}
int i = 0;
while (!inFile.eof()) {
inFile >> a[i++];
}
n=i;
inFile.close();
}
void writeFile(int nn,int nnn)
{
ofstream outFile("output.txt");
outFile << nn << endl ;
outFile << nnn << endl ;
outFile.close();
}
输入输出c++
最新推荐文章于 2024-10-17 20:36:33 发布