Viết đoạn chương trình Đọc các cặp số a,b từ tệp Input. TXT 09/08/2021 Bởi Skylar Viết đoạn chương trình Đọc các cặp số a,b từ tệp Input. TXT
#include <iostream>#include <fstream>using namespace std;int main(){ ofstream fileinput(“Input. TXT”); int a,b; fileinput>>a>>b; fileinput.close(); //samon247 return 0;} Bình luận
var a,b: integer;
begin
assign(input,’Input.TXT’);
reset(input);
readln(input,a,b);
#include <iostream>
#include <fstream>
using namespace std;
int main()
{
ofstream fileinput(“Input. TXT”);
int a,b;
fileinput>>a>>b;
fileinput.close();
//samon247
return 0;
}