#include #include #include using namespace std; int main() { int tb[10], last=0; fstream we; fstream wy; we.open("t.txt", ios::in); if(we.good() != true) { cout << "blad"; return(1); } for(int i=0;i<10;i++) { if(we.eof() == true) break; we >> tb[i]; last=i; } we.close(); last += 1; cout << endl << "wczytano" << last <<" liczb:" << endl; for(int i=0; i=0; i--) wy << tb[i] << " "; wy.close(); return(0); }