Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <stdio.h>
- #include <stdlib.h>
- #include <math.h>
- #include <time.h>
- #include <windows.h>
- int tablica()
- {
- char tab[40][80];
- int i,j,z;
- for(i=1;i<=10;i++)
- {
- for(j=1;j<=40;j++)
- {
- if(x==i && y==j)
- printf("");
- else
- tab[i][j]='*';
- tab[i][j]=' ';
- printf("%c",tab[i][j]);
- if(j==40){
- printf("\n");
- }
- /* system( "cls" );*/
- }
- }
- }
- int main()
- {
- int i;
- for(i=0; i<100;i++)
- {
- tablica();
- system( "cls" );
- Sleep(10);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement