Advertisement
Guest User

Untitled

a guest
Apr 26th, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.58 KB | None | 0 0
  1. void board (int wiersze, int kolumny)
  2. {
  3. for (int i = 0; i < wiersze; i++)
  4. {
  5. for (int j = 0; j < kolumny; j++)
  6. {
  7. plansza[i][j] = 10;
  8. }
  9. }
  10.  
  11. cout << " ";
  12. for (int i = 0; i < kolumny; i++)
  13. {
  14. cout << i << " ";
  15. }
  16. cout << "\n";
  17.  
  18. char aktualny_wiersz = 'A';
  19.  
  20. for (int i = 0; i < wiersze; i++)
  21. {
  22. cout << aktualny_wiersz << " ";
  23. aktualny_wiersz++;
  24. for (int j = 0; j < kolumny; j++)
  25. {
  26. cout << "#" << " ";
  27. }
  28. cout << "\n";
  29. }
  30. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement