Dang_Quan_10_Tin

Untitled

Jun 8th, 2020
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.58 KB | None | 0 0
  1. #include <bits/stdc++.h>
  2.  
  3. #define task ""
  4.  
  5. typedef char NameFile[1000];
  6.  
  7. using namespace std;
  8.  
  9. NameFile input, output, answer;
  10. ifstream in, out, ans;
  11. const int N = 4;
  12. int readInput() {
  13.   in.open(input);
  14. }
  15. int readOutput() {
  16.   out.open(output);
  17. }
  18. int readAnswer() {
  19.   ans.open(answer);
  20. }
  21.  
  22. void check() {
  23.  
  24. }
  25.  
  26. main() {
  27.     gets(input);
  28.     gets(output);
  29.     strcpy(answer, input);
  30.     strcat(input,  task".INP");
  31.     strcat(output, task".OUT");
  32.     strcat(answer, task".ANS");
  33.     readInput();
  34.     readOutput();
  35.     readAnswer();
  36.     check();
  37.     in.close();
  38.     out.close();
  39.     ans.close();
  40. }
Advertisement
Add Comment
Please, Sign In to add comment