PCTurk | Aşk Sevgi Resimleri , Mektupları , silkroad , komik msn avatarlar (Arşiv Ana sayfa) => Programlama

Konu: "Kim 500.000 İster?" Oyunu C++

Sayfa: [ 1 ]

sWaGg€r 01.07.2008 18:31:15
#include <cstdlib>
#include <iostream>

using namespace std;

int main(int argc, char *argv[])
{
   
    int s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15;
    cout<<"                           KIM 500 000 ISTER                    "<<endl;
    cout<<" "<<endl;
    cout<<"Soru 1 : Istanbul kac yilinda feth edilmistir?"<<endl<<" "<<endl<<"1)1299    2)1453    3)1919    4)1923"<<endl;
    cout<<" "<<endl;
    cout<<"Cevap : ";
    cin>>s1;
    if(s1==1)
    {
           cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!"  <<endl;
    }
   
    if(s1==3)
    {
           cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!"  <<endl;
    } 
   
    if(s1==4)
    {
           cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!"  <<endl;
    }
    if(s1==2)
    {
           cout<<" "<<endl;
           cout<<"DOGRU CEVAP! ODUL 50 YTL!"<<endl;
           cout<<" "<<endl;
           cout<<"Soru 2 : Unlu cizgi film kahramani Temel Reis'in zor durumlarda yedigi sebze "<<endl<<"nedir?"<<endl<<" "<<endl<<"1)Karnibahar    2)Mantar   3)Semiz otu    4)Ispanak"<<endl;
           cout<<" "<<endl;
           cout<<"Cevap : ";
           cin>>s2;
    if(s2==1)
    {
             cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!"  <<endl;
    } 
    if(s2==2)
    {
             cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!"  <<endl;
    } 
    if(s2==3)
    {
             cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!"  <<endl;   
    }           
   
    if(s2==4)
    {
             cout<<" "<<endl;
             cout<<"DOGRU CEVAP! ODUL 100 YTL!"<<endl;               
             cout<<" "<<endl;
             cout<<"Soru 3 : 19 Mayis ne bayramidir ?"<<endl<<" "<<endl<<"1)Ataturk'u Anma Genclik ve Spor Bayrami"<<endl<<"2)Ulusal Egemenlik ve Cocuk Bayrami"<<endl<<"3)Cumhuriyet Bayrami"<<endl<<"4)Zafer Bayrami"<<endl;
             cout<<" "<<endl;
             cout<<"Cevap : ";
             cin>>s3;
    if(s3==2)
    {
             cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!"  <<endl;
    }
    if(s3==3)
    {
             cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!"  <<endl;
    }
    if(s3==4)
    {
             cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!"  <<endl;
    }
    if(s3==1)
    {       
             cout<<" "<<endl;
             cout<<"DOGRU CEVAP! ODUL 150 YTL!"<<endl;
             cout<<" "<<endl;
             cout<<"Soru 4 : Asagidakilerden hangisi bir devlet adami degildir ?"<<endl<<" "<<endl<<"1)Ataturk    2)Sah Ismail    3)Tonyukuk    4)Piri Reis"<<endl;       
             cout<<" "<<endl;
             cout<<"Cevap : ";
             cin>>s4;
    if(s4==1)
    {
             cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!"  <<endl;
    }
    if(s4==2)
    {
             cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!"  <<endl;
    }
    if(s4==3)
    {
             cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!"  <<endl;
    }
    if(s4==4)
    {       
             cout<<" "<<endl;
             cout<<"DOGRU CEVAP! ODUL 250 YTL!"<<endl;
             cout<<" "<<endl;
             cout<<"Soru 5 : Egypt asagidaki ulkelerden hangisinin turkcesidir?"<<endl<<" "<<endl<<"1)Endonezya    2)Ermenisstan    3)Misir    4)Ispanya"<<endl;
             cout<<" "<<endl;
             cout<<"Cevap : ";
             cin>>s5;
    if(s5==1)             
    {
             cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!"  <<endl;
    }
    if(s5==2)
    {
             cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!"  <<endl;
    }
    if(s5==4)
    {
             cout<<"YANLIS CEVAP! ELENDINIZ VE HIC PARA ODULU KAZANAMADINIZ!"  <<endl;
    }
    if(s5==3)
    {
    cout<<" "<<endl;
    cout<<"DOGRU CEVAP! TEBRIKLER BARAJI ASTINIZ! ODUL 500 YTL!"<<endl;
    cout<<" "<<endl;
    cout<<"Soru 6 : Suyun ozkutlesinin sicaklikla iliskisi nasildir?"<<endl;
    cout<<" "<<endl;
    cout<<"1)Sicaklik arttikca ozkutle artar"<<endl<<"2)Sicaklik azaldikca ozkutle artar"<<endl<<"3)En buyuk ozkutle 25 derecededir"<<endl<<"4)En buyuk ozkutle 4 derecededir"<<endl;
    cout<<" "<<endl;
    cout<<"Cevap : ";
    cin>>s6;
    if(s6==1)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl;
    }
    if(s6==2)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl;
    }
    if(s6==3)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl;
    }
    if(s6==4)
    {
            cout<<" "<<endl;
            cout<<"DOGRU CEVAP! ODUL 1000 YTL!"<<endl;
            cout<<" "<<endl;
            cout<<"Soru 7 : Asagidakilerden hangisi kucuk unlu uyumuna uyar?"<<endl;
            cout<<" "<<endl;
            cout<<"1)Alkol    2)Samsun    3)Boya    4)Buton"<<endl;
            cout<<" "<<endl;
            cout<<"Cevap : ";
            cin>>s7;
    if(s7==1)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl;
    }
    if(s7==2)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl;
    }
    if(s7==4)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl;
    }
    if(s7==3)
    {
            cout<<" "<<endl;
            cout<<"DOGRU CEVAP! ODUL 2000 YTL!"<<endl;
            cout<<" "<<endl;
            cout<<"Soru 8 : Madde dogada kac halde bulunur?"<<endl;
            cout<<" "<<endl;
            cout<<"1)4    2)3    3)2    4)1"<<endl;
            cout<<" "<<endl;
            cout<<"Cevap : ";
            cin>>s8;
    if(s8==2)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl;
    }
    if(s8==3)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl;
    }
    if(s8==4)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl;
    }
    if(s8==1)
    {
            cout<<" "<<endl;
            cout<<"DOGRU CEVAP! ODUL 4000 YTL!"<<endl;
            cout<<" "<<endl;
            cout<<"Soru 9 : Agirligin birimi nedir?"<<endl;
            cout<<" "<<endl;
            cout<<"1)Kilogram    2)Metre    3)Metrekup    4)Newton"<<endl;
            cout<<" "<<endl;
            cout<<"Cevap : ";
            cin>>s9;
    if(s9==1)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl;
    }
    if(s9==2)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl;
    }
    if(s9==3)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl;
    }
    if(s9==4)
    {
            cout<<" "<<endl;
            cout<<"DOGRU CEVAP! ODUL 8000 YTL!"<<endl;
            cout<<" "<<endl;
            cout<<"Soru 10 : Sapli kucuk bir sepetin icine bir bilye koyup hizla cevirdigimizde"<<endl<<"bilyenin yere dusmemesi fizikteki hangi kanunla aciklanir?"<<endl;
            cout<<" "<<endl;
            cout<<"1)Yercekimi    2)Eylemsizlik    3)Durgunluk    4)Tanecikli yapi"<<endl;
            cout<<" "<<endl;
            cout<<"Cevap : ";
            cin>>s10;
    if(s10==1)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl;
    }
    if(s10==3)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl;
    }
    if(s10==4)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 500 YTL!"<<endl;
    }
    if(s10==2)
    {
            cout<<" "<<endl;
            cout<<"DOGRU CEVAP! TEBRIKLER BARAJI ASTINIZ! ODUL 16000 YTL!"<<endl;
            cout<<" "<<endl;
            cout<<"Soru 11 : Birazilya milli takimi kac kere dunya kupasi birincisi olmustur?"<<endl;
            cout<<" "<<endl;
            cout<<"1)3    2)4    3)5    4)6"<<endl;
            cout<<" "<<endl;
            cout<<"Cevap : ";
            cin>>s11;
    if(s11==1)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl;
    }
    if(s11==2)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl;
    }
    if(s11==4)
    {
            cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl;
    }
    if(s11==3)
    {
            cout<<" "<<endl;
            cout<<"DOGRU CEVAP! ODUL 32000 YTL!"<<endl;
            cout<<" "<<endl;
            cout<<"Soru 12 : Bir gun boyunca yelkovan ile akrebin ust uste geldigi sure kac"<<endl<<"saniyedir?"<<endl;
            cout<<" "<<endl;
            cout<<"1)420    2)520    3)620    4)720"<<endl;
            cout<<" "<<endl;
            cout<<"Cevap : ";
            cin>>s12;
    if(s12==1)
    {
              cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl;
    }
    if(s12==2)
    {
              cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl;
    }
    if(s12==3)
    {
              cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl;
    }
    if(s12==4)
    {
             cout<<" "<<endl;
             cout<<"DOGRU CEVAP! ODUL 64000 YTL!"<<endl;
             cout<<" "<<endl;
             cout<<"Soru 13 : 2006 yili kimya nobel odulunu kim almistir?"<<endl;
             cout<<" "<<endl;
             cout<<"1)Muhammed Yunus    2)Roger Kornberg    3)Andrew Fire    4)George Smoot"<<endl;
             cout<<" " <<endl;
             cout<<"Cevap : ";
             cin>>s13;
    if(s13==1)
    {
              cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl;
    }
    if(s13==3)
    {
              cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl;
    }
    if(s13==4)
    {
              cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl;
    }
    if(s13==2)
    {
             cout<<" "<<endl;
             cout<<"DOGRU CEVAP! ODUL 125000 YTL!"<<endl;
             cout<<" "<<endl;
             cout<<"Soru 14 : Dunyanin en yasli adami kac yasindadir?"<<endl;
             cout<<" "<<endl;
             cout<<"1)115    2)114    3)113    4)112"<<endl;
             cout<<" "<<endl;
             cout<<"Cevap : ";
             cin>>s14;
    if(s14==1)
    {
              cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl;
    }
    if(s14==2)
    {
              cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl;
    }
    if(s14==3)
    {
              cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl;
    }
    if(s14==4)
    {
              cout<<" "<<endl;
              cout<<"DOGRU CEVAP! ODUL 250000 YTL!"<<endl;             
              cout<<" "<<endl;
              cout<<"Soru 15 : Eyfel kulesinin yulsekligi kac metredir?"<<endl;
              cout<<" "<<endl;
              cout<<"1)273    2)373    3)475    4)300"<<endl;
              cout<<" "<<endl;
              cout<<"Cevap : ";
              cin>>s15;
    if(s15==1)
    {
              cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl;
    }
    if(s15==2)
    {
              cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl;
    }
    if(s15==3)
    {
              cout<<"YANLIS CEVAP! ELENDINIZ! PARA ODULUNUZ 16000 YTL!"<<endl;
    }
    if(s15==4)
    {
              cout<<" "<<endl;
              cout<<"TEBRIKLER! TUM SORULARI DOGRU CEVAPLADINIZ! ODUL 500000 YTL!!!"<<endl;   
              cout<<" "<<endl;
              cout<<" "<<endl;
              cout<<" "<<endl;
              cout<<"                    Y A P I M  ...."<<endl;
              cout<<" "<<endl;
              cout<<" "<<endl;
              cout<<" "<<endl;
   
    }         
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
    }
   
    system("PAUSE");
    return EXIT_SUCCESS;
}

Pc-king 10.11.2008 20:05:52
Bu oyunu  nası  yapcaz   Kahkaha

tahir57 27.01.2009 17:51:46
one ya ben anlmadım :S

{C_RoN} 04.02.2009 18:06:11
bu kodları c++ programına yazcaz ve oyun hazı olcak

heralde yani öyleydi sanki ... avs


Sayfa: [ 1 ]