RockLife Rock Metal Forum
Would you like to react to this message? Create an account in a few clicks or log in to continue.



 
AnasayfaAnasayfa  AramaArama  Latest imagesLatest images  Kayıt OlKayıt Ol  Giriş yapGiriş yap  

 

 c++ bi kac program.....

Aşağa gitmek 
YazarMesaj
Tatlı-Cadı
Özel Üye
Özel Üye
Tatlı-Cadı


Mesaj Sayısı : 798
Başarı Puanı : 2236
Rep Puanı : 1
Kayıt tarihi : 28/05/09
Yaş Yaş : 33
Nerden : Almanya
İş/Hobiler İş/Hobiler : Golf

c++ bi kac program..... Empty
MesajKonu: c++ bi kac program.....   c++ bi kac program..... Icon_minitimePtsi Ekim 25, 2010 6:46 am

bi tane list ornegı giriln 5 tane ismi duzenliyo.....

#include <iostream>
#include <list>
using namespace std;
int main()
{
list<string> adlar;
string a;
for(int i=1;i<=5;i++)
{
cout<<"isim gir="; cin>>a;
adlar.push_back(a);
}

adlar.sort();
cout<<"ilk deger="<<adlar.front()<<endl;
cout<<"son deger="<<adlar.back()<<endl;
cout<<"eleman degeri="<<adlar.size()<<endl;

return 0;
}


tekmı ciftmı olduguna bullan prog ram...

#include <iostream>

using namespace std;

bool lavuksoid ( int num )
{
int ciftmi=0;
ciftmi = num % 2;
if (ciftmi == 0 )
return true;
else
return false;
}

int main ()
{
for (int sayi = 1; sayi <= 10; sayi++)
{
cout << sayi;
if ( lavuksoid(sayi) )
{
cout << " CIFT.";
int c = 0;
c
else
cout << " TEK.";
cout << endl;
}
return 0;
}
Sayfa başına dön Aşağa gitmek
https://rocklife.forum.st
 
c++ bi kac program.....
Sayfa başına dön 
1 sayfadaki 1 sayfası
 Similar topics
-
»  180 Tane Full Cep Telefonu Program Tek Link Symbian Cep ıçin 180 Klasör 297 Program
»  Nokia DEV program Arsivi 203 tane program
» Msn Hatalarını Düzelten Program
» Kader Keita’ya özel program
» C Dersi: Matematikte 4 İşlem Program Kodları ve Açıklaması

Bu forumun müsaadesi var:Bu forumdaki mesajlara cevap veremezsiniz
RockLife Rock Metal Forum :: Herşey Burda :: Webmaster&Webtasarım :: Programlama :: C ++ , C # , PHP-
Buraya geçin: