Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- using namespace std;
- enum class Pole
- {
- O, X, puste
- };
- class Plansza
- {
- Pole** tablica;
- public:
- Plansza(short d);
- ~Plansza();
- void wypisz();
- };
- Plansza::Plansza(short d)
- {
- tablica = new Pole*[d];
- for(short i = 0; i < d; ++i)
- tablica[i] = new Pole[d];
- for(short i = 0; i < d; ++i)
- for(short j = 0; j < d; ++j)
- tablica[i][j] = Pole::puste;
- }
- int main()
- {
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment