Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include<stdlib.h>
- #include<string.h>
- int stampaSchermata(char[3][3]);
- main()
- {
- char giocatore1[1024], giocatore2[1024], matrice[3][3];
- int i, a;
- printf("inserisci i nomi dei giocatori\n");
- scanf("%s %s", &giocatore1, &giocatore2);
- for(i=0; i<3; i++)
- {
- for(a=0; a<3; a++)
- matrice[i][a] = 'a';
- }
- stampaSchermate(char matrice[3][3]);
- return 0;
- }
- int stampaSchermate(char matrice[3][3])
- {
- printf("____________________________ \n");
- printf("| | | | \n");
- printf("| %c | %c | %c | \n", matrice[0][0], matrice[0][1], matrice[0][2]);
- printf("| | | | \n");
- printf("|--------------------------| \n");
- printf("| | | | \n");
- printf("| %c | %c | %c | \n", matrice[1][0], matrice[1][1], matrice[1][2]);
- printf("| | | | \n");
- printf("|--------------------------| \n");
- printf("| | | | \n");
- printf("| %c | %c | %c | \n", matrice[2][0], matrice[2][1], matrice[2][2]);
- printf("| | | | \n");
- printf("|________|________|________| \n");
- return 2;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement