#include #include using namespace std; int main(){ ifstream fi("C:\\Users\\PC\\Desktop\\C++\\File\\dulieu2.inp"); ofstream fo("C:\\Users\\PC\\Desktop\\C++\\File\\ketqua2.out"); if(fi==NULL||fo==NULL) cout<<"\n Loidoc/Ghi file"; else{ int x; while(!fi.eof()){ //eof khac true fi>>x; if(x%2!=0) fo<<" "<
Không có nhận xét nào: