Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #pragma once#pragma once
- #include <iostream>
- #include <vector>
- #include <cmath>
- #include <string>
- #include <fstream> // работа с файлами
- #include <iomanip>
- class DP_CODE
- {
- private:
- unsigned int n;
- unsigned int t;
- //std::vector < std::vector <char> > codes;
- std::vector < std::vector <int> > codes;
- unsigned int arr_rang[5][5] = { 2,2,2,2,2,3,3,3,3,3,5,4,4,4,4,8,6,5,5,5,14,8,7,6,6 };
- unsigned int rank;
- //std::bitset <0> b1();
- public:
- class DP_CODE(unsigned int n, unsigned int t) {
- this->n = n;
- this->t = t;
- // rank= arr_rang[n][t];
- codes.resize(5);
- // std::cout << rank;
- // std::vector <int> temp;
- for (int i = 0; i < 5; i++)
- {
- std::vector <int> temp;
- for (int j = 0; j < n; j++)
- {
- temp.push_back(11 % 10);
- }
- codes.push_back(temp);
- }
- }
- void print1() {
- for (int i = 0; i < 5; i++) {
- for (int j = 0; j < n; j++) {
- std::cout << codes[i][j];
- }
- std::cout << "\n";
- }
- }
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement