Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <map>
- #include <algorithm>
- #include <fstream>
- #include <ctime>
- #include <string>
- class Matrix
- {
- public:
- Matrix()
- {
- this->size_ = 3;
- this->matrix_.resize(size_ * size_);
- for (int i = 0; i < size_ * size_; i++)
- {
- matrix_[i] = 'W'; // Determing rondom colors for side of Cube
- }
- }
- Matrix(std::vector<char> &position) : Matrix()
- {
- for (int i = 0; i < size_ * size_; i++)
- {
- matrix_[i] = position[i]; // Determing colors for each sell of side of Cube
- }
- }
- ~Matrix()
- {
- }
- protected:
- std::vector<char> matrix_;
- int size_;
- };
Add Comment
Please, Sign In to add comment