Advertisement
bojandam1

Untitled

Feb 22nd, 2023
28
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. #include <iostream>
  2. #include <vector>
  3. #include <map>
  4. using namespace std;
  5.  
  6. char board[3][3]={{'.','.','.'},{'.','.','.'},{'.','.','.'}};
  7. string ChLogo="*+#697";
  8. void PrBoard()
  9. {
  10. for(int i=0;i<3;i++)
  11. {
  12. for(int j=0;j<3;j++)
  13. {
  14. cout<<board[i][j];
  15. }
  16. cout<<endl;
  17. }
  18. }
  19.  
  20. struct poteg{
  21. int potegBr=0;
  22. string opis="202122000102";
  23. void PecatiPoteg(){
  24. system("CLS");
  25. for(int i=0;i<3;i++)
  26. {
  27. for(int j=0;j<3;j++)
  28. {
  29. board[i][j]='.';
  30. }
  31. }
  32. for(int i=0;i<6;i++)
  33. {
  34. if(opis[2*i]=='D')continue;
  35. board[2*i][2*i+1]=ChLogo[i];
  36. }
  37. PrBoard();
  38.  
  39. }
  40.  
  41. };
  42.  
  43.  
  44.  
  45. int main()
  46. {
  47. cout << "Hello world!" << endl;
  48. poteg P1;
  49. P1.PecatiPoteg();
  50. return 0;
  51. }
  52.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement