Arama butonu
Bu konudaki kullanıcılar: 1 misafir
123
Cevap
91777
Tıklama
0
Öne Çıkarma
Cevap: c++ örnekleri (7. sayfa)
O
10 yıl
Çavuş

Aradan zaman geçmiş görmedim ama belki başkalarının işine yarar diye koltukla ilgili olan soruyu çözümleyeceğim:

 
#include<iostream>
#include <conio.h>
using namespace std;


int main(){

int koltukNo;
cout << endl << "Koltuk numaraninizi giriniz >> " << endl;
cin >> koltukNo;

if(koltukNo > 0 && koltukNo <= 50){
if((koltukNo % 2) == 0){

cout << "Cam kenari!" << endl;

}
else
cout << "Koridor!" << endl;
}
else
cout << "Bu aracta yalnizca 50 koltuk vardir!.. " << endl;


getch();





}




D
10 yıl
Teğmen

güzel programlar c++ çalışıyorum bende bir kitaptan bitsin bunları incelerim



D
10 yıl
Teğmen

quote:

Orijinalden alıntı: Berke Aydin

Bu kod X sayısını Y sayısından büyükmü veya küçükmü ona bakar (İlk Kodum) C++ İçin !



KOD :


#include <iostream>
#include <cstdlib>


using namespace std;

main() {

// system("color xy"); x = arkaplan y = yazı rengi


// Bu kod X sayısının Y sayısından büyükmü yoksa küçükmü ona bakar



system("color 87");

int x;
int y;


cout << "Program Versiyonu Alpha 19 Beta 1287 Build 2";
cout << endl;
cout << endl;
cout << endl;



cout << "X sayisini girin = ";

cin >> x;


cout << "Y sayisini girin = ";

cin >> y;

if(x>y)
{
system("color 8A");
cout << endl;
cout << endl;
cout << endl;
cout << "X sayisi Y sayisindan buyuktur";
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << "Program Bitti.. ";
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;

}



if(x==y)
{


system("color 8A");



cout << endl;
cout << endl;
cout << endl;
cout << "X Sayisi Y Sayisina Esittir !";
cout << endl;
cout << endl;
cout << endl;



}



else
{
system("color 8C");
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << "X sayisi Y sayisindan kucuktur";
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << endl;
cout << "Program Biti..";
cout << endl;
cout << endl;
cout << endl;
cout << endl;

}


cin >> x;

}



hort kusura bakma gereksiz yere kodu çok uzatmışsın ilk baktığımda karışık geldi :D
bende yazmıştım :)

#include <iostream>
#include <conio.h>
using namespace std ;

main ()
{
double x,y;
cout<<"arada bosluk birakarak iki sayi giriniz: ";
cin>>x;
cin>>y;

if (x>y)
{
cout<<"x buyuk";
}
else if (x==y)
{
cout<<"x ve y birbirine esit";
}
else
{
cout<<"y buyuk";
}



B
13 yıl
Er

quote:

Orijinalden alıntı: 95xxserhat

bu da kim 500 milyar ister soruları değiştirebilirsiniz
#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 serhat kaya"<<endl;
cout<<" "<<endl;
cout<<" "<<endl;
cout<<" "<<endl;

}
}
}
}
}
}
}
}
}
}
}
}
}
}
}

system("PAUSE");
return EXIT_SUCCESS;
}


Bende senin yazdığından esinlendim biraz daha farklı yapmaya calıştım.Ama ben bu programa sürede eklemek istiyorum ama bi fikrim yok belki yardımcı olursunuz

#include <cstdlib>
#include <iostream>
#include<conio.h>
using namespace std;
int odullendirme(int);
void baraj();
int Kazanilanpara(int);
int main()
{
int soru_Sayisi=0, s1,s2,s3,s4,s5,s6,s7,s8,s9,s10,s11,s12,s13,s14,s15;
cout<<"Soru 1 : Istanbul kac yilinda feth edilmistir?"<<endl<<" "<<endl<<"1)1299 2)1453 3)1919 4)1923"<<endl;
cout<<" "<<endl<<"Cevap vermek icin sureniz basladi";
soru_Sayisi++;
cout<<"Cevap : ";
cin>>s1;
if(s1==1 || s1==3 || s1==4)
{
cout<<"YANLIS CEVAP! ELENDINIZ"<<endl;
Kazanilanpara(soru_Sayisi);
getch();
return 0;
}
else if(s1==2)
{
cout<<"DOGRU CEVAP!";
odullendirme(soru_Sayisi);
baraj();
}
system("cls");
cout<<endl<<"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;
soru_Sayisi++;
if(s2==1 || s2==2 || s2==3)
{
cout<<"YANLIS CEVAP! ELENDINIZ" <<endl;
Kazanilanpara(soru_Sayisi);
getch();
return 0;

}
if(s2==4)
{
cout<<" "<<endl;
cout<<"DOGRU CEVAP"<<endl;
cout<<" "<<endl;
odullendirme(soru_Sayisi);
baraj();
}
system("cls");
cout<<endl<<"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;
soru_Sayisi++;
if(s3==2 || s3==4 ||s3==3)
{
cout<<"YANLIS CEVAP" <<endl;
Kazanilanpara(soru_Sayisi);
getch();
return 0;

}
if(s3==1)
{
cout<<" "<<endl;
cout<<"DOGRU CEVAP"<<endl;
cout<<" "<<endl;
odullendirme(soru_Sayisi);
baraj();
}
system("cls");
cout<<endl<<"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;
soru_Sayisi++;
if(s4==1 || s4==3 || s4==2)
{
cout<<"YANLIS CEVAP! ELENDINIZ " <<endl;
Kazanilanpara(soru_Sayisi);
getch();
return 0;
}
if(s4==4)
{
cout<<" "<<endl;
cout<<"DOGRU CEVAP"<<endl;
cout<<" "<<endl;
odullendirme(soru_Sayisi);
baraj();
}
system("cls");
cout<<endl<<"Soru 5 : Egypt asagidaki ulkelerden hangisinin turkcesidir?"<<endl<<" "<<endl<<"1)Endonezya 2)Ermenisstan 3)Misir 4)Ispanya"<<endl;
cout<<" "<<endl;
cout<<"Cevap : ";
cin>>s5;
soru_Sayisi++;
if(s5==1 || s5==2 || s5==4)
{
cout<<"YANLIS CEVAP! ELENDINIZ" <<endl;
Kazanilanpara(soru_Sayisi);
getch();
return 0;
}
if(s5==3)
{
cout<<" "<<endl;
cout<<"DOGRU CEVAP"<<endl;
cout<<" "<<endl;
odullendirme(soru_Sayisi);
baraj();
}
system("cls");
cout<<endl<<"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;
soru_Sayisi++;
if(s6==1 || s6==2 || s6==3)
{
cout<<"YANLIS CEVAP! ELENDINIZ"<<endl;
Kazanilanpara(soru_Sayisi);
getch();
return 0;
}
if(s6==4)
{
cout<<" "<<endl;
cout<<"DOGRU CEVAP"<<endl;
cout<<" "<<endl;
odullendirme(soru_Sayisi);
baraj();
}system("cls");
cout<<endl<<"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;
soru_Sayisi++;
if(s7==1 || s7==2 || s7==4)
{
cout<<"YANLIS CEVAP"<<endl;
Kazanilanpara(soru_Sayisi);
getch();
return 0;
}
if(s7==3)
{
cout<<" "<<endl;
cout<<"DOGRU CEVAP"<<endl;
cout<<" "<<endl;
soru_Sayisi++;
odullendirme(soru_Sayisi);
baraj();
}system("cls");
cout<<endl<<"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;
soru_Sayisi++;
if(s8==2 || s8==3 || s8==4)
{
cout<<"YANLIS CEVAP"<<endl;
Kazanilanpara(soru_Sayisi);
getch();
return 0;
}
if(s8==1)
{
cout<<" "<<endl;
cout<<"DOGRU CEVAP"<<endl;
cout<<" "<<endl;
odullendirme(soru_Sayisi);
baraj();
}system("cls");
cout<<endl<<"Soru 9 : Agirligin birimi nedir?"<<endl;
cout<<" "<<endl;
cout<<"1)Kilogram 2)Metre 3)Metrekup 4)Newton"<<endl;
cout<<" "<<endl;
cout<<"Cevap : ";
cin>>s9;
soru_Sayisi++;
if(s9==1 || s9==2 || s9==3)
{
cout<<"YANLIS CEVAP"<<endl;
Kazanilanpara(soru_Sayisi);
getch();
return 0;
}
if(s9==4)
{
cout<<" "<<endl;
cout<<"DOGRU CEVAP"<<endl;
cout<<" "<<endl;
odullendirme(soru_Sayisi);
baraj();
}system("cls");
cout<<endl<<"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;
soru_Sayisi++;
if(s10==1 || s10==4 ||s10==3)
{
cout<<"YANLIS CEVAP! ELENDINIZ"<<endl;
Kazanilanpara(soru_Sayisi);
getch();
return 0;
}
if(s10==2)
{
cout<<" "<<endl;
cout<<"DOGRU CEVAP"<<endl;
cout<<" "<<endl;
odullendirme(soru_Sayisi);
baraj();
}system("cls");
cout<<endl<<"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;
soru_Sayisi++;
if(s11==1 || s11==4 || s11==2)
{
cout<<"YANLIS CEVAP"<<endl;
Kazanilanpara(soru_Sayisi);
getch();
return 0;
}
if(s11==3)
{
cout<<" "<<endl;
cout<<"DOGRU CEVAP"<<endl;
cout<<" "<<endl;
odullendirme(soru_Sayisi);
baraj();
}system("cls");
cout<<endl<<"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;
soru_Sayisi++;
if(s12==1 || s12==3 || s12==2)
{
cout<<"YANLIS CEVAP"<<endl;
Kazanilanpara(soru_Sayisi);
getch();
return 0;
}
if(s12==4)
{
cout<<" "<<endl;
cout<<"DOGRU CEVAP"<<endl;
cout<<" "<<endl;
odullendirme(soru_Sayisi);
baraj();
}
cout<<endl<<"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;
soru_Sayisi++;
if(s13==1 || s13==3 || s13==4)
{
cout<<"YANLIS CEVAP! ELENDINIZ"<<endl;
Kazanilanpara(soru_Sayisi);
getch();
return 0;
}
if(s13==2)
{
cout<<" "<<endl;
cout<<"DOGRU CEVAP"<<endl;
cout<<" "<<endl;
odullendirme(soru_Sayisi);
baraj();
}system("cls");
cout<<endl<<"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;
soru_Sayisi++;
if(s14==1 || s14==2 || s14==3)
{
cout<<"YANLIS CEVAP! ELENDINIZ"<<endl;
Kazanilanpara(soru_Sayisi);
getch();
return 0;
}
if(s14==4)
{
cout<<" "<<endl;
cout<<"DOGRU CEVAP"<<endl;
cout<<" "<<endl;
odullendirme(soru_Sayisi);
baraj();
}system("cls");
cout<<endl<<"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;
soru_Sayisi++;
if(s15==1 || s15==2 || s15==3)
{
cout<<"YANLIS CEVAP! ELENDINIZ"<<endl;
Kazanilanpara(soru_Sayisi);
getch();
return 0;
}
if(s15==4)
{
cout<<" "<<endl;
cout<<"TEBRIKLER TUM SORULARI DOGRU CEVAPLADINIZ" <<endl;
odullendirme(soru_Sayisi);
baraj();
}
system("PAUSE");
return EXIT_SUCCESS;
}

int odullendirme(int soru_Sayisi)
{
if(soru_Sayisi==1)
cout<<"50 Milyon Kazandiniz";
if(soru_Sayisi==2)
cout<<"100 Milyon Kazandiniz";
if(soru_Sayisi==3)
cout<<"200 Milyon Kazandiniz";
if(soru_Sayisi==4)
cout<<"300 Milyon Kazandiniz";
if(soru_Sayisi==5)
cout<<"500 Milyon Kazandiniz";
if(soru_Sayisi==6)
cout<<"1 Milyar Kazandiniz";
if(soru_Sayisi==7)
cout<<"2 Milyar Kazandiniz";
if(soru_Sayisi==8)
cout<<"4 Milyar Kazandiniz";
if(soru_Sayisi==9)
cout<<"8 Milyar Kazandiniz";
if(soru_Sayisi==10)
cout<<"16 Milyar Kazandiniz";
if(soru_Sayisi==11)
cout<<"32 Milyar Kazandiniz";
if(soru_Sayisi==12)
cout<<"64 Milyar Kazandiniz";
if(soru_Sayisi==13)
cout<<"125 Milyar Kazandiniz";
if(soru_Sayisi==14)
cout<<"250 Milyar Kazandiniz";
if(soru_Sayisi==15)
cout<<"500 Milyar Kazandiniz";
}
void baraj()
{
int soru_Sayisi;
if(soru_Sayisi==5)
{
cout<<endl<<"500 Milyon Barajini astiniz:";
}
if(soru_Sayisi==10)
{
cout<<"16 Milyar Barajini astiniz:";
}
}
int Kazanilanpara(int soru_Sayisi)
{
if(soru_Sayisi<5)
cout<<"Kazanilan Miktar 0 TL";
if(soru_Sayisi==6 || soru_Sayisi==7 || soru_Sayisi==8 || soru_Sayisi==9 )
cout<<"Kazanilan Miktar 500 MİLYON";
if(soru_Sayisi==10)
cout<<"Kazanilan Miktar 16 MİLYAR";
}
void bekle( int saniye )
{
clock_t endwait;
endwait = clock () + saniye * CLOCKS_PER_SEC ;
while (clock() < endwait) {}
}





< Bu mesaj bu kişi tarafından değiştirildi b111210004 -- 19 Ağustos 2012; 19:24:38 >
Bu mesaja 1 cevap geldi.
DH Mobil uygulaması ile devam edin. Mobil tarayıcınız ile mümkün olanların yanı sıra, birçok yeni ve faydalı özelliğe erişin. Gizle ve güncelleme çıkana kadar tekrar gösterme.