Şimdi Ara

C++ ile Soru Sorma Programı Nasıl Yazılır

Daha Fazla
Bu Konudaki Kullanıcılar: Daha Az
2 Misafir - 2 Masaüstü
5 sn
22
Cevap
1
Favori
5.788
Tıklama
Daha Fazla
İstatistik
  • Konu İstatistikleri Yükleniyor
0 oy
Öne Çıkar
Sayfa: 12
Sayfaya Git
Git
sonraki
Giriş
Mesaj
  • Arkadaşlar, geçen sene dökümanlar sayesinde cmd ekranında soru soruyordum ve programı kullanan kişi sorulara cevap veriyordu. Sonra hdd ölünce belgelerim herşeyim gitti, o sinirle bu işi bıraktım ama kopamadım tekrardan başladım. Bu sefer c# ile başladım ama ne cmd ekranında nede windows ekranında istediğimi yapamadım.

    c# ile hesap makinesi ve ders notu hesaplama gibi ufak çaplı programlar yazdım ama benim istediğim cmd veya windows ekranında soru sormak ve sorulara arkadaşımda cevap vericek olay bu kadar. Ama ben nasıl yapılıyordu hepsini unuttum, bana bu konuda yardımcı olabilecek birisi varmı? döküman olur video olur, kaynak,link olur. Lütfen yardım edin bu konuda...



  • Bilgi yarışması tarzı bir soru sorma programı mı.. Tam anlayamadım..
  • quote:

    Orijinalden alıntı: Kod_Dünyası

    Bilgi yarışması tarzı bir soru sorma programı mı.. Tam anlayamadım..

    yok bilgi yarışmsı tarzında değil...

    örneğin;

    adın nedir?
    cevap verilecek
    soyadın nedir?
    cevap verilecek
    yaşın kaç?
    cevap verilecek


    bu şekilde normal bir soru sorma programı olucak yarışma falan değil.eğer bu konuda yardımcı olursanız çok sevinirim.
  • Sorular sabit mi, sayısı belli mi bir de alınan cevaplar işlenecek mi? Biraz daha açıklayıcı olursan yardımı olabilirim. Bir de ne amaçla kullanılacak. Mantıklı bir uygulama gibi gelmedi bana :)
  • quote:

    Orijinalden alıntı: Kod_Dünyası

    Sorular sabit mi, sayısı belli mi bir de alınan cevaplar işlenecek mi? Biraz daha açıklayıcı olursan yardımı olabilirim. Bir de ne amaçla kullanılacak. Mantıklı bir uygulama gibi gelmedi bana :)

    Şöyle söyliyeyim...

    arkdaşım bilişim okuyor 3. sınıfta. yaklaşık 15 soru sorucam ve sorulara program ile işte cevap vericek yazılı olarak, programa yazıcak cevapları yani.
    verdiği cevaplar ise online olarak benim database ime gelicek. Olay bu aslında kısaca.

    cmd veya windws ekranında süslemeler ile programı yazmak istiyorum yardımınız ile, 15 soru sorucam programda ve o 15 soruya cevap vericek arkadaşım, vermiş olduğu cevaplar online olarak benim database(veritabanıma) gelicek.
  • cmd dediğin Console uygulaması sanırım.
  • quote:

    Orijinalden alıntı: Kod_Dünyası

    cmd dediğin Console uygulaması sanırım.

    aynen konsol uygulaması, illa ben konsol(cmd) uygulamasında yapıcam diye bir şart yok, windows formda da olur.
  • Şöyle bir durum var. Eğer sen arkadaşının cevaplarını Online olarak göreceksen bunun windows uygulaması ya da konsol uygulaması yerine web uygulaması olması daha mantıklı. Eğer online'ı internet olarak kastediyorsan. Yerel ağdan takip edeceğim diyorsan windows uygulamasıda olur.
  • PM attım Ayhan abi okursan çok sevinirim ve bilgilendirme yaparsan.
  • Okudum.
  • arkadaşlar ben yazdım biraz, 3 soru sordum, 1. soruyu cevaplıyınca direk kapatmak için bir tuşa basın diyor, 2. soruya geçemiyorum. Onun için string tanımlamam gerekiyor ama tanımlıyorum hata veriyor. Buyrun:


    #include <iostream>
    #include <string>

    using namespace std;

    int main()
    {

    int isim,yas,takim;
    string isim;

    cout << "Adin Nedir ?" << endl;//soru 1
    cin >> isim;//girdi 1

    cout << "Yasin Kac ?" << endl;//soru 2
    cin >> yas;//girdi 2

    cout << "Hangi Takimlisin ?" << endl;//soru 3
    cin >> takim;//girdi 3



    system("PAUSE");
    return 0;
    }
  • int'den sonraki "isim" i silersen program çalışıyor
  • quote:

    Orijinalden alıntı: bersis576

    int'den sonraki "isim" i silersen program çalışıyor

    :)
  • yanlışmı oldu acaba :)
  • quote:

    Orijinalden alıntı: bersis576

    yanlışmı oldu acaba :)

    Yok doğruda yapılan hata çok basitmiş :)
  • sorun yok o zaman :)
  • Arkadslar size sorum olacak bnim 1000tl-1200 tllik butcem var size göre hangi marka bilgisayar almalıyım oyun oynamak için özellikleri kaç olmalı [s
    m=s18.gif]
  • Ben c++ dili ile cmd ekranında 20 soruluk bir bilgi yarışması hazırlıyorum...

    Hocamız bize 50:50 (yarı yarıya joker) hakkı ekleyin ve bu haktan 3 tane olsun dedi... Bunu kolayca yapabiliyorum.

    Daha sonra bize 2x (çift cevap hakkı jokeri) hakkı ekleyin dedi bu haktan 3 tae olsun dedi...

    İşte sıkıntı burası bunu yapamıyorum yapsam da olmuyor şu şekilde anlatayım... ALLAH RIZASI İÇİN YARDIM EDİN


    #include <stdio.h>
    #include <stdlib.h>
    #include <math.h>
    #include <conio.h>
    #include <dos.h>
    #include <iostream>
    #include <time.h>
    #include <windows.h>
    using namespace std;
    int main()
    {
    char cc2,kvc,c1,js,c2,c3,c4,c5;
    int puan=0;
    int hak=3;
    int joker=3;
    int jk=3;

    cout<<"Bilgi Yarismamiza Hosgeldiniz";Sleep(2000);
    system("cls");

    cout<<"Soru 1:Magnenzyumu simgesi nedir ?";cout<<endl;
    cout<<"A)Mm";cout<<endl;
    cout<<"B)Mg";cout<<endl;
    cout<<"C)Ma";cout<<endl;
    cout<<"D)My";cout<<endl;

    cout<<"Joker kullanmak ister misiniz ? (e/h)";
    cin>>kvc;

    if(kvc=='e' || kvc=='E')
    {
    goto jokersecimi;
    }
    if(kvc=='h' || kvc=='H')
    {
    goto cp1;
    }
    cp1:
    cout<<"Cevabiniz:";
    cin>>c1;

    if(c1=='b' || c1=='B')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    puan=puan+5;
    goto s2;
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;
    hak=hak-1;

    if(hak=0)
    {
    cout<<"Haklariniz bitti oyunu kaybettiniz";cout<<endl;
    cout<<puan;cout<<" puan aldiniz";Sleep(5000);
    exit(0);
    }
    system("cls");
    goto s2;
    }



    jokersecimi:

    cout<<"50:50 jokeri icin 1 e basin";cout<<endl;
    cout<<"2x jokeri icin 2 e basin";
    cin>>js;

    system("cls");

    if(js=='1')
    {
    system("cls");

    cout<<"Bir 50:50 jokeri kaybettiniz";cout<<endl;

    cout<<"Soru 1:Magnenzyumu simgesi nedir ?";cout<<endl;
    cout<<"A)";cout<<endl;
    cout<<"B)Mg";cout<<endl;
    cout<<"C)";cout<<endl;
    cout<<"D)My";cout<<endl;

    joker=joker-1;

    if(joker=0)
    {
    cout<<"50:50 jokerleriniz bitti";cout<<endl;
    goto c1;
    }

    c1:
    cout<<"Cevabiniz:";
    cin>>c1;

    if(c1=='b' || c1=='B')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    puan=puan+5;
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;
    hak=hak-1;
    if(hak=0)
    {

    cout<<"Haklariniz bitti oyunu kaybettiniz";cout<<endl;
    cout<<puan;cout<<" puan aldiniz";Sleep(5000);
    exit(0);
    }
    }
    }
    system("cls");


    if(js=='2')
    {
    cout<<"Bir 2x jokeri kaybettiniz";cout<<endl;
    jk=jk-1;

    cout<<"Soru 1:Magnenzyumu simgesi nedir ?";cout<<endl;
    cout<<"A)Mm";cout<<endl;
    cout<<"B)Mg";cout<<endl;
    cout<<"C)Ma";cout<<endl;
    cout<<"D)My";cout<<endl;

    cout<<"Cevabiniz:";
    cin>>c1;

    if(c1=='b' || c1=='B')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    puan=puan+5;
    system("cls");
    goto s2;
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;

    if(jk=0)
    {
    cout<<"2x jokerleriniz bitti";cout<<endl;
    goto cc2;
    }
    goto cc2;
    }

    cc2:

    cout<<"Cevabiniz:";
    cin>>c1;

    if(c1=='b' || c1=='B')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;

    puan=puan+5;
    goto s2;
    system("cls");
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;
    system("cls");
    hak=hak-1;

    if(hak=0)
    {
    cout<<"Haklariniz bitti";cout<<endl;
    cout<<puan;cout<<" puan aldiniz";Sleep(5000);
    exit(0);
    }

    if(jk=0)
    {
    cout<<"2x jokerleriniz bitti";cout<<endl;
    goto cc2;
    }
    goto s2;
    }
    }
    system("cls");


    s2:
    cout<<"Soru 2: Gunes isiginin dunyaya yaklasma suresi ne kadardir ?";cout<<endl;
    cout<<"A)8 sn";cout<<endl;
    cout<<"B)10 sn";cout<<endl;
    cout<<"C)8 dk";cout<<endl;
    cout<<"D)40 sn";cout<<endl;

    cout<<"Joker kullanmak ister misiniz ? (e/h)";
    cin>>kvc;

    if(kvc=='e' || kvc=='E')
    {
    goto jokersecimi2;
    }
    if(kvc=='h' || kvc=='H')
    {
    goto cp2;
    }
    cp2:

    cout<<"Cevabiniz:";
    cin>>c2;

    if(c2=='c' || c2=='C')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    puan=puan+5;
    goto s3;
    system("cls");
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;
    hak=hak-1;

    if(hak=0)
    {
    cout<<"Haklariniz bitti oyunu kaybettiniz";cout<<endl;
    cout<<puan;cout<<" puan aldiniz";Sleep(5000);
    exit(0);
    }
    goto s3;
    }
    system("cls");


    jokersecimi2:

    cout<<"50:50 jokeri icin 1 e basin";cout<<endl;
    cout<<"2x jokeri icin 2 e basin";
    cin>>js;

    system("cls");

    if(js=='1')
    {
    system("cls");

    cout<<"Bir 50:50 jokeri kaybettiniz";cout<<endl;

    cout<<"Soru 2: Gunes isiginin dunyaya yaklasma suresi ne kadardir ?";cout<<endl;
    cout<<"A)8 sn";cout<<endl;
    cout<<"B)";cout<<endl;
    cout<<"C)8 dk";cout<<endl;
    cout<<"D)";cout<<endl;

    joker=joker-1;

    if(joker=0)
    {
    cout<<"50:50 jokerleriniz bitti";cout<<endl;
    goto c2;
    }

    c2:
    cout<<"Cevabiniz:";
    cin>>c1;

    if(c2=='c' || c2=='C')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    puan=puan+5;
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;
    hak=hak-1;

    if(hak=0)
    {

    cout<<"Haklariniz bitti oyunu kaybettiniz";cout<<endl;
    cout<<puan;cout<<" puan aldiniz";Sleep(5000);
    exit(0);
    }
    }
    }
    system("cls");


    if(js=='2')
    {
    cout<<"Bir 2x jokeri kaybettiniz";cout<<endl;
    jk=jk-1;

    cout<<"Soru 2: Gunes isiginin dunyaya yaklasma suresi ne kadardir ?";cout<<endl;
    cout<<"A)8 sn";cout<<endl;
    cout<<"B)10 sn";cout<<endl;
    cout<<"C)8 dk";cout<<endl;
    cout<<"D)40sn";cout<<endl;

    cout<<"Cevabiniz:";
    cin>>c2;

    if(c2=='c' || c2=='C')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    puan=puan+5;
    system("cls");
    goto s3;

    }

    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;

    if(jk=0)
    {
    cout<<"2x jokerleriniz bitti";cout<<endl;
    goto ccs2;
    }
    goto ccs2;
    }

    ccs2:

    cout<<"Cevabiniz:";
    cin>>c2;

    if(c2=='c' || c2=='C')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    system("cls");
    puan=puan+5;
    goto s3;
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;
    system("cls");
    hak=hak-1;

    if(hak=0)
    {
    cout<<"Haklariniz bitti";cout<<endl;
    cout<<puan;cout<<" puan aldiniz";Sleep(5000);
    exit(0);
    }

    if(jk=0)
    {
    cout<<"2x jokerleriniz bitti";cout<<endl;
    goto cc2;
    }
    goto s3;
    system("cls");
    }
    }
    system("cls");


    s3:
    cout<<"Soru 3: Nufusu en cok olan Islam ulkesi hangisidir ?";cout<<endl;
    cout<<"A)Hindistan";cout<<endl;
    cout<<"B)Pakistan";cout<<endl;
    cout<<"C)Nijerya";cout<<endl;
    cout<<"D)Endonezya";cout<<endl;

    cout<<"Joker kullanmak ister misiniz ? (e/h)";
    cin>>kvc;

    if(kvc=='e' || kvc=='E')
    {
    goto jokersecimi3;
    }
    if(kvc=='h' || kvc=='H')
    {
    goto cp3;
    }
    cp3:
    cout<<"Cevabiniz:";
    cin>>c3;

    if(c3=='d' || c3=='D')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    puan=puan+5;
    system("cls");
    goto s4;
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;
    hak=hak-1;

    if(hak=0)
    {
    cout<<"Haklariniz bitti oyunu kaybettiniz";cout<<endl;
    cout<<puan;cout<<" puan aldiniz";Sleep(5000);
    exit(0);
    }
    system("cls");
    goto s4;
    }



    jokersecimi3:

    cout<<"50:50 jokeri icin 1 e basin";cout<<endl;
    cout<<"2x jokeri icin 2 e basin";
    cin>>js;

    system("cls");

    if(js=='1')
    {
    system("cls");

    cout<<"Bir 50:50 jokeri kaybettiniz";cout<<endl;

    cout<<"Soru 3: Nufusu en cok olan Islam ulkesi hangisidir ?";cout<<endl;
    cout<<"A)";cout<<endl;
    cout<<"B)Pakistan";cout<<endl;
    cout<<"C)";cout<<endl;
    cout<<"D)Endonezya";cout<<endl;

    joker=joker-1;

    if(joker=0)
    {
    cout<<"50:50 jokerleriniz bitti";cout<<endl;
    goto c3;
    }

    c3:
    cout<<"Cevabiniz:";
    cin>>c1;

    if(c3=='d' || c1=='D')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    puan=puan+5;
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;
    hak=hak-1;

    if(hak=0)
    {

    cout<<"Haklariniz bitti oyunu kaybettiniz";cout<<endl;
    cout<<puan;cout<<" puan aldiniz";Sleep(5000);
    exit(0);
    }
    }
    }
    system("cls");


    if(js=='2')
    {
    cout<<"Bir 2x jokeri kaybettiniz";cout<<endl;
    jk=jk-1;

    cout<<"Soru 3: Nufusu en cok olan Islam ulkesi hangisidir ?";cout<<endl;
    cout<<"A)Hindistan";cout<<endl;
    cout<<"B)Pakistan";cout<<endl;
    cout<<"C)Nijerya";cout<<endl;
    cout<<"D)Endonezya";cout<<endl;

    cout<<"Cevabiniz:";
    cin>>c3;

    if(c3=='d' || c3=='D')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    puan=puan+5;
    system("cls");
    goto s4;

    }

    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;

    if(jk=0)
    {
    cout<<"2x jokerleriniz bitti";cout<<endl;
    goto ccss2;
    }
    goto ccss2;
    }

    ccss2:

    cout<<"Cevabiniz:";
    cin>>c3;

    if(c3=='d' || c1=='D')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    system("cls");
    puan=puan+5;
    goto s4;
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;
    system("cls");
    hak=hak-1;

    if(hak=0)
    {
    cout<<"Haklariniz bitti";cout<<endl;
    cout<<puan;cout<<" puan aldiniz";Sleep(5000);
    exit(0);
    }

    if(jk=0)
    {
    cout<<"2x jokerleriniz bitti";cout<<endl;
    goto ccss2;
    }
    system("cls");
    goto s4;
    }
    }


    s4:

    cout<<"Soru 4: 2013 Akdeniz Olimpiyatlari hangi ulkede yapildi";cout<<endl;
    cout<<"A)Turkiye";cout<<endl;
    cout<<"B)Fransa";cout<<endl;
    cout<<"C)Isvec";cout<<endl;
    cout<<"D)Almanya";cout<<endl;

    cout<<"Joker kullanmak ister misiniz ? (e/h)";
    cin>>kvc;

    if(kvc=='e' || kvc=='E')
    {
    goto jokersecimi4;
    }
    if(kvc=='h'|| kvc=='H')
    {
    goto cp4;
    }
    cp4:
    cout<<"Cevabiniz:";
    cin>>c4;

    if(c4=='a' || c4=='A')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    puan=puan+5;
    goto s5;
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;
    hak=hak-1;

    if(hak=0)
    {
    cout<<"Haklariniz bitti oyunu kaybettiniz";cout<<endl;
    cout<<puan;cout<<" puan aldiniz";Sleep(5000);
    exit(0);
    }

    goto s5;
    }
    system("cls");

    jokersecimi4:

    cout<<"50:50 jokeri icin 1 e basin";cout<<endl;
    cout<<"2x jokeri icin 2 e basin";
    cin>>js;

    system("cls");

    if(js=='1')
    {
    system("cls");

    cout<<"Bir 50:50 jokeri kaybettiniz";cout<<endl;

    cout<<"Soru 4: 2013 Akdeniz Olimpiyatlari hangi ulkede yapildi";cout<<endl;
    cout<<"A)Turkiye";cout<<endl;
    cout<<"B)";cout<<endl;
    cout<<"C)Isvec";cout<<endl;
    cout<<"D)";cout<<endl;

    joker=joker-1;

    if(joker=0)
    {
    cout<<"50:50 jokerleriniz bitti";cout<<endl;
    goto c4;
    }

    c4:
    cout<<"Cevabiniz:";
    cin>>c4;

    if(c4=='a' || c4=='A')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    puan=puan+5;
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;
    hak=hak-1;

    if(hak=0)
    {

    cout<<"Haklariniz bitti oyunu kaybettiniz";cout<<endl;
    cout<<puan;cout<<" puan aldiniz";Sleep(5000);
    exit(0);
    }
    }
    }
    system("cls");

    if(js=='2')
    {
    cout<<"Bir 2x jokeri kaybettiniz";cout<<endl;
    jk=jk-1;

    cout<<"Soru 4: 2013 Akdeniz Olimpiyatlari hangi ulkede yapildi";cout<<endl;
    cout<<"A)Turkiye";cout<<endl;
    cout<<"B)Fransa";cout<<endl;
    cout<<"C)Isvec";cout<<endl;
    cout<<"D)Almanya";cout<<endl;

    cout<<"Cevabiniz:";
    cin>>c4;

    if(c1=='b' || c1=='B')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    puan=puan+5;
    system("cls");
    goto s5;

    }

    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;

    if(jk=0)
    {
    cout<<"2x jokerleriniz bitti";cout<<endl;
    goto ccs42;
    }
    goto ccs42;
    }

    ccs42:

    cout<<"Cevabiniz:";
    cin>>c4;

    if(c4=='b' || c4=='B')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    system("cls");
    puan=puan+5;
    goto s5;
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;
    system("cls");
    hak=hak-1;

    if(hak=0)
    {
    cout<<"Haklariniz bitti";cout<<endl;
    cout<<puan;cout<<" puan aldiniz";Sleep(5000);
    exit(0);
    }

    if(jk=0)
    {
    cout<<"2x jokerleriniz bitti";cout<<endl;
    goto cc2;
    }
    system("cls");
    goto s5;
    }
    }
    system("cls");

    s5:
    cout<<"Soru 5:TBMM ilk toplantisini hangi ayin ilk gunu yapar";cout<<endl;
    cout<<"A)Eylul";cout<<endl;
    cout<<"B)Ekim";cout<<endl;
    cout<<"C)Haziran";cout<<endl;
    cout<<"D)Kasim";cout<<endl;

    cout<<"Joker kullanmak ister misiniz ? (e/h)";
    cin>>kvc;

    if(kvc=='e' || kvc=='E')
    {
    goto jokersecimi5;
    }
    if(kvc=='h' || kvc=='H')
    {
    goto cp5;
    }
    cp5:
    cout<<"Cevabiniz:";
    cin>>c5;

    if(c5=='b' || c5=='B')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    puan=puan+5;
    goto s6;
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;
    hak=hak-1;

    if(hak=0)
    {
    cout<<"Haklariniz bitti oyunu kaybettiniz";cout<<endl;
    cout<<puan;cout<<" puan aldiniz";Sleep(5000);
    exit(0);
    }
    system("cls");
    goto s6;
    }

    jokersecimi5:

    cout<<"50:50 jokeri icin 1 e basin";cout<<endl;
    cout<<"2x jokeri icin 2 e basin";cout<<endl;
    cout<<"Sectiginiz joker:";
    cin>>js;

    system("cls");

    if(js=='1')
    {
    system("cls");

    cout<<"Bir 50:50 jokeri kaybettiniz";cout<<endl;

    cout<<"Soru 5:TBMM ilk toplantisini hangi ayin ilk gunu yapar";cout<<endl;
    cout<<"A)";cout<<endl;
    cout<<"B)Ekim";cout<<endl;
    cout<<"C)";cout<<endl;
    cout<<"D)Kasim";cout<<endl;

    joker=joker-1;

    if(joker=0)
    {
    cout<<"50:50 jokerleriniz bitti";cout<<endl;
    goto c5;
    }

    c5:
    cout<<"Cevabiniz:";
    cin>>c5;

    if(c5=='b' || c5=='B')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    puan=puan+5;
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;
    hak=hak-1;
    if(hak=0)
    {

    cout<<"Haklariniz bitti oyunu kaybettiniz";cout<<endl;
    cout<<puan;cout<<" puan aldiniz";Sleep(5000);
    exit(0);
    }
    }
    }
    system("cls");

    if(js=='2')
    {
    cout<<"Bir 2x jokeri kaybettiniz";cout<<endl;
    jk=jk-1;

    cout<<"Soru 5:TBMM ilk toplantisini hangi ayin ilk gunu yapar";cout<<endl;
    cout<<"A)Eylul";cout<<endl;
    cout<<"B)Ekim";cout<<endl;
    cout<<"C)Haziran";cout<<endl;
    cout<<"D)Kasim";cout<<endl;

    cout<<"Cevabiniz:";
    cin>>c5;

    if(c5=='b' || c5=='B')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    puan=puan+5;
    system("cls");
    goto s6;
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;

    if(jk=0)
    {
    cout<<"2x jokerleriniz bitti";cout<<endl;
    goto cc52;
    }
    goto cc52;
    }

    cc52:

    cout<<"Cevabiniz:";
    cin>>c5;

    if(c5=='b' || c5=='B')
    {
    cout<<"Dogru cevap";Sleep(500);cout<<endl;
    system("cls");
    puan=puan+5;
    goto s6;
    }
    else
    {
    cout<<"Yanlis cevap";Sleep(500);cout<<endl;
    system("cls");
    hak=hak-1;

    if(hak=0)
    {
    cout<<"Haklariniz bitti";cout<<endl;
    cout<<puan;cout<<" puan aldiniz";Sleep(5000);
    exit(0);
    }

    if(jk=0)
    {
    cout<<"2x jokerleriniz bitti";cout<<endl;
    goto cc2;
    }
    goto s6;
    }
    }
    system("cls");

    s6:
    cout<<"Soru 6:";cout<<endl;
    }




  • studio oyun S kullanıcısına yanıt
    Yardımcı olabilirim ama nerde takıldığınızı söylemeniz gerekir , kodun hepsini inceleyemem gerçekten çok uzun. Birde goto metodunu kullanmamaya özen göster
  • cezaalp kullanıcısına yanıt
    Ya aslında yukarda yazdıklarım yanlış ben ordaki bazı hataları düzelttim goto komutunu kullanmazsam eğer hatalar artıyor yani soru 1 de kullandığım 50:50 (yarı yarıya) jokerinde yanlış yaptığımda soruda 2x (çift cevap) jokeri ile iç ice geçiyor kısaca 50:50 de soruyu yanlış yapsamda sanki 2x (çift cevap ) jokeri gibi ikinci cevabımı da istiyor.

    goto yaparsam ise yukarda yazılan sorun olmuyor..



    < Bu mesaj bu kişi tarafından değiştirildi studio oyun -- 22 Şubat 2016; 19:20:57 >
  • 
Sayfa: 12
Sayfaya Git
Git
sonraki
- x
Bildirim
mesajınız kopyalandı (ctrl+v) yapıştırmak istediğiniz yere yapıştırabilirsiniz.