Advertisement
NHumme

Untitled

Apr 20th, 2019
110
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.79 KB | None | 0 0
  1. #include <iostream>
  2. #include <cstdio>
  3. #include <algorithm>
  4. #include <cmath>
  5. #include <vector>
  6. #include <string>
  7. #include <set>
  8. #include <stack>
  9. #include <queue>
  10. #include <deque>
  11. #include <fstream>
  12. using namespace std;
  13.  
  14. #define TASK "path"
  15.  
  16. int main() {
  17.  
  18. #ifdef _DEBUG
  19.     //freopen("debug.in", "r", stdin);
  20.     //freopen("debug.out", "w", stdout);
  21. #else
  22.     //freopen(TASK".in", "r", stdin);
  23.     //freopen(TASK".out", "w", stdout);
  24.     //freopen("input.txt", "r", stdin);
  25.     //freopen("output.txt", "w", stdout);
  26. #endif // _DEBUG
  27.  
  28.     ios_base::sync_with_stdio(0);
  29.     cin.tie(0);
  30.     cout.tie(0);
  31.     cout.precision(6);
  32.  
  33.     ofstream fout;
  34.     for (int i = 1; i <= 50; i++) {
  35.         string filename = "";
  36.         filename += (i < 10 ? "0" + char(i + '0') : char(i / 10 + '0') + char(i + '0'));
  37.     }
  38.  
  39.     return 0;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement