Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <string>
- #include <fstream>
- #include <windows.h>
- using namespace std;
- void main()
- {
- SetConsoleOutputCP(1251);
- string A = "алихн";
- string B = "шорин";
- string C = "нургалиы";
- ofstream file("D:\\abc.txt", ios_base::out);
- file << "{";
- for(size_t i = 0; i < A.size(); ++i)
- for(size_t j = 0; j < B.size(); ++j)
- for(size_t k = 0; k < C.size(); ++k){
- file <<"<"<<A[i]<<","<<B[j]<<","<<C[k]<<">,";
- }
- file << "}";
- file.close();
- cin.get();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement