Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <fstream>
- #include <vector>
- template <typename T,typename U>
- std::vector<U> blya(std::vector<T> vec,U v, int value) {
- std::vector<T> temp=vec;
- // std::vector<U> a= std::vector<vec>;
- for (size_t i = 0; i < value; ++i) {
- temp.push_back(vec);
- }
- return vec;
- }
- template <typename U>
- std::vector<U> veec(std::initializer_list<int> ae, std::vector<U> main_vec,
- int value_now) {
- std::vector<U> temp_v = main_vec;
- std::vector<U> this_vec;
- for (std::initializer_list<int>::iterator i = ae.end() - 2; i >= ae.begin();
- ++i) {
- (void)blya(temp_v, temp_v,static_cast<int>(*i));
- // temp_v.push_back(main_vec);
- }
- return this_vec;
- }
- template <typename U, typename... T>
- void init(U value, T... args) {
- std::vector<std::vector<int>> b(2, std::vector<int>(3, -1));
- std::vector<std::vector<std::vector<std::string>>> c(
- 3, std::vector<std::vector<std::string>>(
- 4, std::vector<std::string>(2, "aba")));
- std::initializer_list<int> aye{args...};
- std::ofstream out("a.txt");
- std::initializer_list<int>::iterator a = std::end(aye) - 1;
- out << *a;
- std::vector<U> main_v(*a, value);
- static_cast<void>(veec(aye, main_v, 1));
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement