标签:you int ble 关于 提示 c++ ace sim col
嗯,就是一个模板的事。
1 #include <bits/stdc++.h> 2 3 using namespace std; 4 5 ifstream fin,fout,fstd; 6 ofstream fscore,freport; 7 // 注意定义 8 9 double judge() 10 { 11 /* 12 关于读入与输出:与cin/cout类似 13 Eg. 14 fin >> x; //从输入文件里读入x 15 freport << "too young too simple sometimes naive."; //提示错因 16 */ 17 18 freport << "AC"; 19 return 1; 20 } 21 22 int main(int argc, char *argv[]) 23 { 24 fin.open(argv[1]); 25 fout.open(argv[2]); 26 fstd.open(argv[3]); 27 fscore.open(argv[5]); 28 freport.open(argv[6]); 29 30 int score = atoi(argv[4]); 31 fscore << score * judge() << endl; 32 33 fin.close(); 34 fout.close(); 35 fstd.close(); 36 fscore.close(); 37 freport.close(); 38 return 0; 39 }
好了,记得要么放在data下,要么在lemon的里面加上文件夹前缀,形如 D1T1\spj.exe
标签:you int ble 关于 提示 c++ ace sim col
原文地址:https://www.cnblogs.com/huyufeifei/p/9772635.html