Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //siema to ja spejson tu masz nasz programik
- #include <iostream>
- #include <cstdio>
- using namespace std;
- void wypelnij(char x, char tab[][9])
- {
- for(int i=0; i<9; i++)
- for(int j=0; j<9; j++)
- {
- cin >> tab[i][j];
- }
- }
- void wypisz(char x, char tab[][9])
- {
- for(int i=0; i<9; i++)
- {
- for(int j=0; j<9; j++) cout << setw(3) << tab[i][j];
- cout << endl;
- }
- cout << endl;
- }
- int main()
- {
- char tab[9][9];
- char x;
- setlocale(LC_CTYPE, ".1250");
- cout << "celem gierki jest trafienie statku na polu 10x10 masz 10 pocisków powodzenia";
- wypelnij(x, tab)
- wypisz(x, tab)
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement