![]() |
|
|
#1 (permalink) |
|
Yarbay
![]() ![]() |
SAYI OYUNUNUN KODU
KOD; #include<stdio.h> #include<stdlib.h> #include<time.h> #include<string.h> void title() { printf("\n_-_-_-_-_-_-_SAYI BILME OYUNU_-_-_-_-_-_-_\n"); } int main () { int x a i=0 b=0 t=0 w tut[100] j;char s[100] is[100] q[100];FILE *f=fopen("list.dat" "a+");title(); restart: srand((unsigned) time ( aaaa )); x=rand()%100+0; i=0; while(a!=x) { printf("\nsayi giriniz:"); for(j=0;j<i;j++) if(tut[j]==a) {printf("bu sayiyi daha once kullandiniz"); goto restart2;} scanf("%d" &a); tut=a;if(a==x) {printf("\n__HELAL LEN__"); break;} if(a<x) printf("\ncik\n"); else printf("\nin\n"); i++; if(i>15) {printf("\nSİZ BU OYUNU OYNAYACAK KADAR ZEKA YA SAHİP DEGİLSİNİZ\n"); goto restart2;} } if(i==0) strcpy(s "sen neymissin be abi\n");if(i>0 && i<=5) strcpy(s "aklınız yeterli\n");if(i>5 && i<=10)strcpy(s "bi doktora gozukun\n");if(i>10 && i<=15) strcpy(s "aklınızın %99 nu aldırdınız mı?\n");printf("\n%d tahminde bildiniz\n" i);printf("\nakıl seviyeniz:%s" s);printf("\nisminizi giriniz:"); scanf("%s" is);printf("\n__YOUR SCORE__\n"); printf("%s %d\n" is i);fprintf(f "%s %d\n" is i);restart2: printf("\n_-_-_-_-_OYUN SECENEKLERI_-_-_-_-_\n"); printf("1--->>restart\n"); printf("2--->>highscores\n"); printf("3--->>about\n"); printf("4--->>exit\n"); printf("your choose: "); scanf("%d" &b);if(b==1) goto restart; if(b==4) exit(0); if(b==2) printf("dosya acılamıyor"); return 0; } |
|
|
|
![]() |
| Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir) | |
| Seçenekler | |
| Stil | |
|
|
Benzer Konular
|
||||
| Konu | Konuyu Başlatan | UslanmaM | Cevaplar | Son Mesaj |
| bir sayi bulmaca | umutfm | Zeka Soruları ve Bilmeceler | 12 | 02-27-2008 04:11 PM |
| Kobe'den 38 Sayi | dwyane_wade | Basketbol | 1 | 02-13-2008 05:07 PM |
| Pachulia'dan 5 Sayi | FeArLeSs | Basketbol | 0 | 12-16-2007 02:22 PM |
| Sayi | cHoLeRa | S Harfli Rüya | 0 | 08-09-2007 06:18 PM |
