bende c ye yeni baslayanlardanım..sekli az cok kurdum ama listeleme işini yapamıorum.yazdıklarımızı tekrar nasıl cagırıp ekrana yazdırıcaz? |
Arkadaşlar Bana C++ ta ekran koruyucu Lazım..Yardım Ederseniz Sevinirim. Şimdiden Teşekkürler. |
arkadaslar ben c++ da animasyonlu jackpot oyunu yapmak istiyorum ama derleyici olarak code::blocks kullanıyoruz ve içerisinde bulunan FLTK kütüphanesi yardımıyla yapmam gerekiyo ve bu konuda neredeyse sıfırım. yardımcı olursanız sevinirim şimdiden teşekkürler. |
arkadaşlar halkla ilişkiler okuyorum, hiç anlamıyorum c++ programından hoca bu ödevi vermiş..yardım edermisiniz? ödev şu:Klayden girilen -100..100 aralığındaki negatif ve pozitif sayıları, ekrana yazdıran programı oluşturun. |
al kardeş bu bütün pozitif negatif sayilar bulur sadece -100 ile 100 değil hepsini bulur.(C++ da yazdım) #include<stdio.h> #include<conio.h> main() { int a; printf("Bir Sayi Giriniz:"); scanf("%d",&a); if(a<0) printf("Sayi Negatiftir"); else if(a>0) printf("Sayi Pozitiftir"); else printf("Sayi Sifirdir"); getch(); } |
Arkadaşlar C++ da yıldızlarla değişik şekil oluşturmayla ilgili sorular varsa paylaşır mısınız lütfen. |
Yani şimdi bunlar C'mi? C öğreneyim filan gibi düşünenler varsa, bu örnekleri ciddiye almamasını ve yoluna düzgünce devam etmesini tavsiye ederim şahsen. |
çok teşkkür ederim yardımın için. |
bana yardım edebilirmisiniz c++ da yıldızlarla adımı yazdırmalıyım forla serhat tan srhat ı yaptım e yi koyunca hata verio lütfen 16/05/2011 saat 22:00 a kadar yardımlarınızı bekliyorum![]() |
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; } |
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; } |
şimdi girilen 2 basamaklı sayının onlar ve birler basamağını bulan prıgram![]() #include<stdio.h> #include<conio.h> main() { int a,Onlar,Birler; printf("Sayi giriniz\n",a); scanf("%d",&a); Onlar=a/10; Birler=a-Onlar*10; printf("Onlar=%d\n",Onlar); printf("Birler=%d\n",Birler); getch(); } |
arkadaşlar buradan sorularınız varsa buyrun yazın yapabildiklerimi yaparım![]() burada da yaşınızı ve boyunuzu program değerlendiriyor #include<stdio.h> #include<conio.h> main() { int yas,boy; printf("yasinizi giriniz"); scanf("%d",&yas); if(yas<7) printf("cocuksunuz"); else if(yas<25) printf("gencsiniz"); else if(yas<60) printf("yaslisiniz"); else printf("bir ayagı cukurda\n"); printf("\n"); printf("boyunuzu giriniz"); scanf("%d",&boy); if(boy<140) printf("cucesiniz"); else if(boy<180) printf("normal boydasiniz"); else printf("sırıksınız"); getch(); } |
![]() #include<stdio.h> #include<conio.h> main() { int x,y,z,d,e,f,o; printf("1.sayiyi gir\n",x); scanf("%d",&x); printf("2.sayiyi gir\n",y); scanf("%d",&y); z=x+y; d=x*y; e=x/y; f=x-y; o=z/2; printf("Ortalamasi=%d\n",o); printf("Farki=%d\n",f); printf("bolumu=%d\n",e); printf("carpimi=%d\n",d); printf("toplam=%d\n",z); getch(); } |
elimde daha çok var zamanım oldukça atacağım![]() buda notunuzu 5'lik sistemde söyleyen program #include<stdio.h> #include<conio.h> #include<math.h> main() { int p; printf("puani gir\n"); scanf("%d",&p); if((p>=85)&&(p<=100)) printf("beslik sistemde=5"); else if((p>69)&&(p<84)) printf("beslik sistemde=4"); else if((p>54)&&(p<70)) printf("beslik sistemde=3"); else if((p>45)&&(p<55)) printf("beslik sistemde=2"); else if((p>24)&&(p<45)) printf("beslik sistemde=1"); else printf("beslik sisyemde=0"); getch(); } |
arkadaşlar şu soruyu sormuş hocam yapamadım yardımcı olurmusunuz ? @Klavyeden girilen 15 adet sayı bir sayı dizisinda saklanacaktır.Bu sayı dizisinin ortalaması hesaplandıktan sonra ortalamanın altında kalan terim sayısı ekrana yazdırılacaktır. Örnek sayı dizisi tanımlama int sayilar[14]) |
Edit :
@SuMMerMaN ;
skoylu nun her zaman dediği gibi, bütün diller C den türemiştir. Ben de şöyle devam edeyim. Bu yüzden bu tür fonksiyonları içlerinde bulundururlar. C yi tam anlamıyla öğrenen herkes, çoğu dili biraz biraz bilmiş olur. Zaten kökten işi yapabildiği için C yi tam bilen herkes, daha kolay, saklanmış kodları bulup, eskiden kendi yazmaya uğraştığı kodların yazılmışlarını kullanarak zaten kolay kolay yapabilir. Böylece hem perdenin arkasında neler döndüğünü bilir, hem de aklındaki projeyi çok rahat yapar.
< Bu mesaj bu kişi tarafından değiştirildi Draglino -- 27 Nisan 2010; 19:39:57 >
Bu mesaja 2 cevap geldi. Cevapları Gizle