daily pastebin goal
5%
SHARE
TWEET

Untitled

a guest Oct 12th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #include <iostream>
  2. #include <string>
  3. #include <fstream>
  4. #include <windows.h>
  5. using namespace std;
  6. void main()
  7. {
  8. SetConsoleOutputCP(1251);
  9. string A = "алихн";
  10. string B = "шорин";
  11. string C = "нургалиы";
  12. ofstream file("D:\\abc.txt", ios_base::out);
  13. file << "{";
  14. for(size_t i = 0; i < A.size(); ++i)
  15.     for(size_t j = 0; j < B.size(); ++j)
  16.         for(size_t k = 0; k < C.size(); ++k){
  17.             file <<"<"<<A[i]<<","<<B[j]<<","<<C[k]<<">,";
  18.         }
  19. file << "}";
  20. file.close();
  21. cin.get();
  22. }
RAW Paste Data
Top