Commit 897d7c01 authored by ferhat tamer's avatar ferhat tamer 💬
Browse files

kart yazdırmadaki hatayı giderdim ve ekran temizle komutunu system("clear")...

kart yazdırmadaki hatayı giderdim ve ekran temizle komutunu system("clear") yerine system("cls") olarak güncelledim.
parent b70d7a63
...@@ -63,6 +63,30 @@ torbaYazdir() ...@@ -63,6 +63,30 @@ torbaYazdir()
printf("|%d|",torba[x]);} printf("|%d|",torba[x]);}
} }
} }
void kartYazdir(int x)
{
int kalantas=0;
printf("\n");
printf("%d numarali oyuncu : ",x+1);
for(y=0;y<20;y++){
printf("%c",isim[x][y]);
}printf("\n");
for(y=0;y<satirsayisi;y++){
for(z=0;z<sutunsayisi;z++){
printf("|%d|",tombala[x][y][z]);
if(tombala[x][y][z]!=0)
{
kalantas++;
}
}
printf("\n");
}
if(uretim!=0){
printf("tombala yapmasina %d tasi kaldi",kalantas);}
printf("\n");
}
void sayiUret(int x) void sayiUret(int x)
{ {
cik=0; cik=0;
...@@ -88,30 +112,7 @@ void sayiUret(int x) ...@@ -88,30 +112,7 @@ void sayiUret(int x)
}while(cik<1); }while(cik<1);
} }
void kartYazdir(int x)
{
int kalantas=0;
printf("\n");
printf("%d numarali oyuncu : ",x+1);
for(y=0;y<20;y++){
printf("%c",isim[x][y]);
}printf("\n");
for(y=0;y<satirsayisi;y++){
for(z=0;z<sutunsayisi;z++){
printf("|%d|",tombala[x][y][z]);
if(tombala[x][y][z]!=0)
{
kalantas++;
}
}
printf("\n");
}
if(uretim!=0){
printf("tombala yapmasina %d tasi kaldi",kalantas);}
printf("\n");
}
void tombalaBul(int x ) void tombalaBul(int x )
{ {
int person=x+1; int person=x+1;
...@@ -263,7 +264,7 @@ srand(seed); ...@@ -263,7 +264,7 @@ srand(seed);
printf("."); printf(".");
break; break;
case 56: case 56:
system("clear"); system("cls");
break; break;
default: default:
printf("lutfen 1-7 arasinda sayi gir : "); printf("lutfen 1-7 arasinda sayi gir : ");
......
  • The programming updates here are quite helpful and able to fix the bugs in the code. I like your tremendous work and continue to bring always further help here. Do share economics dissertation writing services work and keep bringing the updated material that is recommended.

Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment