Cho đoạn chương trình sau:# include # include float a,s;int main(){ifstream fi(“dulieu.txt") ;ofstream fo("ketqua.txt") ;fi>>a;s=a*a;fo
Giải thích
Đáp án đúng là: B
Đoạn chương trình trên thực hiện: Đọc dữ liệu từ tệp và ghi kết quả ra tệp, thông qua 2 câu lệnh:
ifstream fi(“dulieu.txt") ;
ofstream fo("ketqua.txt") ;