Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <iostream>
- #include <vector>
- #include <map>
- using namespace std;
- char board[3][3]={{'.','.','.'},{'.','.','.'},{'.','.','.'}};
- string ChLogo="*+#697";
- void PrBoard()
- {
- for(int i=0;i<3;i++)
- {
- for(int j=0;j<3;j++)
- {
- cout<<board[i][j];
- }
- cout<<endl;
- }
- }
- struct poteg{
- int potegBr=0;
- string opis="202122000102";
- void PecatiPoteg(){
- system("CLS");
- for(int i=0;i<3;i++)
- {
- for(int j=0;j<3;j++)
- {
- board[i][j]='.';
- }
- }
- for(int i=0;i<6;i++)
- {
- if(opis[2*i]=='D')continue;
- board[2*i][2*i+1]=ChLogo[i];
- }
- PrBoard();
- }
- };
- int main()
- {
- cout << "Hello world!" << endl;
- poteg P1;
- P1.PecatiPoteg();
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement