我刚学C++不久 ,对C++还不太了解,请高手门多加指点.把原代码写出,尽可能多加注释~~~~~~~~~~~~~~~
#include <iostream>#include <fstream>
using namespace std;
int main(){ int a[10]; //use int for example ifstream fin("filename"); for (int temp,index = 0;index < 10;fin >> temp,a[index++] = temp);//extract data from file cout << a[9];}