Turkish Hacking Sabotage | Türkiyenin En Büyük Hack Ve Security Sitesi

Anasayfa Forumlar Yeni Mesajlar Bugünün Mesajları Üye Ol
Geri git   Turkish Hacking Sabotage | Türkiyenin En Büyük Hack Ve Security Sitesi > PROGRAMLAMA > Programlama > C/C++
Sayfaya güncelle c++ net yazılar ve örnek kodlar
Konu Bilgileri
Konu Başlığı
c++ net yazılar ve örnek kodlar
Konudaki Cevap Sayısı
8
Şuan Bu Konuyu Görüntüleyenler
 
Görüntülenme Sayısı
10
Yeni Konu aç  Cevapla
 
Seçenekler Arama Stil
c++ net yazılar ve örnek kodlar
Alt
  (#1)
em3 is Offline
[10]Yeni Üye
 
em3 - ait Kullanıcı Resmi (Avatar)
 
Mesaj Sayısı: 656
Açtığı Konu: 196

Level: 23 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Paylaşım: 55 / 558
Güç: 218 / 2301
Tecrübe: 35%

Üyelik tarihi: Jul 2007
Kullanıcı No: 105085
Nerden: evden
Tecrübe Puanı: 33
REP Puanı : 100
REP Seviyesi : em3 will become famous soon enoughem3 will become famous soon enough
   
Standart c++ net yazılar ve örnek kodlar - 12-07-2007


Lab icin hazirladigim kumeler ile ilgili bir C++ calismasi, paylastikca kisir donguyu kirmak umidiyle... ))


#include <iomanip>
#include <iostream>
#include <cstring>
using namespace std;

class Integerset
{
private :
int *set;
int len;
public:
Integerset();
Integerset(int arr[],int x);
~Integerset();
Integerset Unionofsets(Integerset &,Integerset &,Integerset &);
Integerset Intersection(Integerset &,Integerset &,Integerset &);

int memberof(int);
void Insertelem(int,int);

void DeleteElem(int);

int Equal(Integerset &,Integerset &);
void Display();
void operator =(const Integerset &);

};







//////////////////////// D-E-F-A-U-L-T //////////////////////////////
Integerset ::Integerset()
{
len=10;
set=new int[len];
for(int i=0;i<len;i++)
set[i]=-1;
}
/////////////// C-O-N-S-T-R-U-C-T-O-R ///////////////////////
Integerset ::Integerset(int arr[],int x)
{
set=new int[x];
len=x;
for(int i=0;i<x;i++)
set[i]=arr[i];
}
//////////////// D-E-S-T-R-U-C-T-O-R ///////////////////////
Integerset ::~Integerset()
{

delete[] set;
}
////////////// C-O-P-Y ///////////////
void Integerset erator =(const Integerset & ob)
{
for(int i=0;i<ob.len;i++)
set[i]=ob.set[i];
}
////////////////// U-N-I-O-N-S-E-T /////////////////

Integerset Integerset ::Unionofsets(Integerset &obj1,Integerset &obj2,Integerset &obj3)
{



for(int i=0;i<len;i++)
obj1.set[i]=obj3.set[i];
int t=0;
int k=obj3.len;

int n=0;

for(i=k;i<k+obj2.len;i++)
{
for(int j=0;j<obj3.len;j++)
{
if(obj2.set[n]!=obj3.set[j])
t=1;
else
{
t=0;
break;
}
}
if(t==1)
{
obj1.set[i]=obj2.set[n];
++n;
}
if(t==0)
{

n++;
}
t=0;
}
return obj1;
}

//////////////// I-N-T-E-R-S-E-C-T-I-O-N //////////////////
Integerset Integerset ::Intersection(Integerset &obj1,Integerset &obj2,Integerset &obj3)
{
for(int i=0;i<obj3.len;i++)
obj3.set[i]=-1;

int t=0;
int n=0;
for(i=0;i<obj1.len;i++)
{ t=0;
for(int j=0;j<obj2.len;j++)
{
if(obj1.set[i]==obj2.set[j])
{ t=1;
break;
}
else
t=0;
}
if(t==1)
{
obj3.set[n]=obj1.set[i];
n++;
}

}
return obj3;
}

/////////////////// D-I-S-P-L-A-Y ///////////////////////////

void Integerset :isplay()
{
cout<<"{";
for(int j=0;j<len;j++)
{ if(*(set+j)!=-1)
{ if(*(set+j)!=*(set+(j+1)))
{ if(j+1==len||j+1==8)
cout<<*(set+j);
else
cout<<*(set+j)<<",";
}
}

}
cout<<"}"<<endl;
}
/////////////////// M-E-M-B-E-R O-F ///////////////////////
int Integerset ::memberof(int a)
{
int t=0;
for(int i=0;i<len;i++)
{ if(set[i]==a)
t=1;
}
if(t==1)
return 1;
else
return 0;
}
/////////////////// I-N-S-E-R-T - E-L-E-M-E-N-T ///////////////////////
void Integerset ::Insertelem(int a,int loc)
{


int t=0;
for(int i=0;i<len;i++)
{ if(set[i]==a)
t=1;
}
if(t==1)
cout<<"the number is in the set "<<endl;
else
{if(loc>len)
cout<<"the ¤¤¤¤¤¤¤¤ out of size"<<endl;
else
set[loc]=a;
}

}
/// D-E-L-E-T-E - E-L-E-M-E-N-T ///
void Integerset :eleteElem(int a)
{
int t=0;
for(int i=0;i<len;i++)
{ if(set[i]==a)
{
set[i]=-1;
t=1;
}
}
if(t==1)
cout<<" the number "<<a<<" deleted "<<endl;
else
cout<<"the number cannot found in the set"<<endl;
}


//// E-Q-U-A-L ////
int Integerset::Equal(Integerset & obj1,Integerset& obj2)
{
int t=0;
for(int i=0;i<obj1.len;i++)
{ for(int j=0;j<obj2.len;j++)
{ if(obj1.set[i]==obj2.set[j])
{
t=1;
break;
}
else
{
t=0;
}
}
if(t==0)
break;
}
if(t==1)
return 1;
else
return 0;
}

///////////////////////////////////////////////////////////////////////////////////
////////// *** M-A-I-N *** ////////////
///////////////////////////////////////////////////////////////////////////////////
int main()
{

int a[4]={1,2,3},m,k;
int b[4]={7,2,8,6};
int c[5]={3,4,5,6,7};
Integerset s1(a,3);
Integerset s2(b,4);
Integerset s3(c,5);


Integerset s9,s10;
Integerset set1,set2;
Integerset s4,s5,s6;
Integerset s11(a,3),st4,st5,st6;
Integerset s22(b,4);
Integerset s33(c,5);
Integerset s;

///////////// PRINT three SETS //////////////
cout<<" 1-first set : ";
s1.Display();
cout<<endl;
cout<<" 2-second set : ";
s2.Display();
cout<<endl;
cout<<" 3-third set : ";
s3.Display();
/////////////////////////////////////////////////////////////////////////////
///////// PRINT UNION of TWO SETS ///////////

//Integerset s4,s5,s6;


cout<<"Enter two set to take union of them "<<endl;

cin>>k;
cin>>m;
if(k==1)
{
if(m==2)
{
s5=s1.Unionofsets(s6,s2,s1);
cout<<" unionset of first and second set = ";
s5.Display();cout<<endl;
}

else if(m==3)
{
s5=s1.Unionofsets(s6,s3,s1);
cout<<" unionset of first and third set = ";
s5.Display();cout<<endl;
}
}
else if(k==2)
{
if(m==3)
{
s5=s6.Unionofsets(s6,s3,s2);
cout<<" union of second and third set = ";
s5.Display();cout<<endl;
}
} cout<<endl;
////////////////////////////////////////////////////////////////////////
////////// PRINT INTERSECTIONSET of TWO SET... ////////////



cout<<" enter two set to take intersection of them ";
cin>>k;
cin>>m;
if(k==1)
{
if(m==2)
{
st4=s11.Intersection(s11,s22,st5);
cout<<" intersectionset of first and second set = ";
st4.Display();cout<<endl;
}
else if(m==3)
{
st4=s11.Intersection(s11,s33,st5);
cout<<" intersectionset of first and third = ";
st4.Display();cout<<endl;
}
else if(m==4)
{
st4=s11.Intersection(s11,s5,st5);
cout<<" intersectionset of first and fourth = ";
st4.Display();cout<<endl;
}
}
else if(k==2)
{
if(m==3)
{
st4=s22.Intersection(s22,s33,st5);
cout<<" intersectionset of second and third = ";
st4.Display();cout<<endl;
}
else if(m==4)
{
st4=s22.Intersection(s22,s5,st5);
cout<<" intersectionset of second and fourth = ";
st4.Display();cout<<endl;
}
}
else if(k==3)
{
if(m==4)
{
st4=s33.Intersection(s33,s5,st5);
cout<<" intersectionset of second and third = ";
st4.Display();cout<<endl;
}
}
////////////////////////////////////////////////////////////////////////
//////// CHECK MEMBER or NOT... //////////// //|

cout<<endl;
cout<<endl;
int z,y;
cout<<" enter a number to check it is member of sets or not : ";
cin>>y;
cout<<" which set do you want to check ";
cin>>z;
cout<<endl;
if(z==1)
{ if(s1.memberof(y))
cout<<" yes "<<y<<" is member of first set "<<endl;
else
cout<<" No "<<y<<" is not member of first set "<<endl;
cout<<endl;
}
else if(z==2)
{ if(s2.memberof(y))
cout<<" yes "<<y<<" is member of second set "<<endl;
else
cout<<" No "<<y<<" is not member of second set "<<endl;
cout<<endl;
}
else if(z==3)
{ if(s3.memberof(y))
cout<<" yes "<<y<<" is member of third set "<<endl;
else
cout<<" No "<<y<<" is not member of third set "<<endl;
cout<<endl;
}
else if(z==4)
{ if(s5.memberof(y))
cout<<" yes "<<y<<" is member of unionset "<<endl;
else
cout<<" No "<<y<<" is not member of unionset "<<endl;
cout<<endl;
}
else if(z==5)
{ if(st4.memberof(y))
cout<<" yes "<<y<<" is member of intersectionset "<<endl;
else
cout<<" No "<<y<<" is not member of intersectionset "<<endl;
cout<<endl;
}



//////////////////////////////////////////////////////////////////////////
///////// INSERTING NUMBER to CURRENT SETS (s1,s2,s3) /////////
char ch;
cout<<" 1-first set : ";
s1.Display();
cout<<endl;
cout<<" 2-second set : ";
s2.Display();
cout<<endl;
cout<<" 3-third set : ";
s3.Display();
cout<<endl;
cout<<" 4-unionset : ";
s5.Display();
cout<<endl;
cout<<" 5-intersectionset : ";
st4.Display();
cout<<endl;

{

int f,g,loc;
cout<<" enter a number to insert ";
cin>>f;
cout<<endl;
cout<<" Which set would you like to insert number "<<f<<"";
cin>>g;
cout<<" Which ¤¤¤¤¤¤¤¤ would you like to insert ? :";
cin>>loc;
if(g==1)

{ s1.Insertelem(f,loc);
s1.Display();
}
else if(g==2)
{ s2.Insertelem(f,loc);
s2.Display();
}
else if(g==3)
{ s3.Insertelem(f,loc);
s3.Display();
}
else if(g==4)
{ s5.Insertelem(f,loc);
s5.Display();
}
else if(g==5)
{
st4.Insertelem(f,loc);
st4.Display();
}
else if(g==5)
{
s.Insertelem(f,loc);
s.Display();
}
//////////////////////////////////////////////////////////////////////////
/////////// DELETING NUMBER from CURRENT SETS (s1,s2,s3) /////////
cout<<endl;

cout<<" 1-first set : ";
s1.Display();
cout<<endl;
cout<<" 2-second set : ";
s2.Display();
cout<<endl;
cout<<" 3-third set : ";
s3.Display();
cout<<endl;
cout<<" 4-unionset : ";
s5.Display();
cout<<endl;
cout<<" 5-intersectionset : ";
st4.Display();
cout<<endl;

cout<<endl;


int r;
cout<<" enter a number to delete : ";
cin>>r;
cout<<" from which set would you like to delete number "<<r<<"";
cin>>g;


if(g==1)
{ s1.DeleteElem(r);
s1.Display();
}
else if(g==2)
{ s2.DeleteElem(r);
s2.Display();
}
else if(g==3)
{ s3.DeleteElem(r);
s3.Display();
}
else if(g==4)
{ s5.DeleteElem(r);
s5.Display();
}
else if(g==5)
{
st4.DeleteElem(r);
st4.Display();
}
else if(g==5)
{
s.DeleteElem(r);
s.Display();
}
}
////////////////////////////////////////////////////////////////////////////
///////////// FIRST AND SECOND set ARE EQUAL or NOT ///////////////////
cout<<endl;
int temp;
temp=s1.Equal(s1,s2);
if(temp==1)
{ cout<<"first set : ";
s1.Display();
cout<<"second set : ";
s2.Display();
cout<<"they are equal "<<endl;
}
else
{ cout<<"first set : ";
s1.Display();
cout<<"second set : ";
s2.Display();
cout<<"they are not equal "<<endl;
} cout<<endl;




return 0;
}


(GK)em3
  
Alıntı ile Cevapla

Cevap: c++ net yazılar ve örnek kodlar
Alt
  (#2)
By Nefret is Offline
[0]Banlı Üye
 
By Nefret - ait Kullanıcı Resmi (Avatar)
 
Mesaj Sayısı: 1,386
Açtığı Konu: 276

Level: 32 [♥ Bé-Yêu ♥]
Paylaşım: 310 / 775
Güç: 462 / 2311
Tecrübe: 1%

Üyelik tarihi: Nov 2007
Kullanıcı No: 191553
Nerden: Bilgisayarım.Yerel Disc C.Windows.System 32.Kadızade Mahallesi.No:69.Bayburt.|69|
Tecrübe Puanı: 0
REP Puanı : 189
REP Seviyesi : By Nefret has a spectacular aura aboutBy Nefret has a spectacular aura about
   
Standart Cevap: c++ net yazılar ve örnek kodlar - 12-07-2007


saol kardes çok kısaymış
  
Alıntı ile Cevapla
Cevap: c++ net yazılar ve örnek kodlar
Alt
  (#3)
em3 is Offline
[10]Yeni Üye
 
em3 - ait Kullanıcı Resmi (Avatar)
 
Mesaj Sayısı: 656
Açtığı Konu: 196

Level: 23 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Paylaşım: 55 / 558
Güç: 218 / 2301
Tecrübe: 35%

Üyelik tarihi: Jul 2007
Kullanıcı No: 105085
Nerden: evden
Tecrübe Puanı: 33
REP Puanı : 100
REP Seviyesi : em3 will become famous soon enoughem3 will become famous soon enough
   
Standart Cevap: c++ net yazılar ve örnek kodlar - 12-07-2007


Uzun kısa farketmez önemli olan birseyler öğretmek.


(GK)em3
  
Alıntı ile Cevapla
Alt
  (#4)
nurefsan is Online
Üye
 
nurefsan - ait Kullanıcı Resmi (Avatar)
 
Mesaj Sayısı: 450
Açtığı Konu: 20

Level: 19 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Paylaşım: 46 / 466
Güç: 150 / 2218
Tecrübe: 67%

Üyelik tarihi: Apr 2007
Kullanıcı No: 2123
Nerden: Konya
Tecrübe Puanı: 37
REP Puanı : 419
REP Seviyesi : nurefsan is just really nicenurefsan is just really nicenurefsan is just really nicenurefsan is just really nicenurefsan is just really nice
   
Standart 05-18-2008


Alıntı:
TR-Sabotage´isimli üyeden Alıntı Mesajı göster
saol kardes çok kısaymış
komedi yaw kod biraz uzun gibi de dediğin doğru fakat gülümsemeler fln çıkmış kodda hiç derleyiciye kopyalamadım
  
Alıntı ile Cevapla
Alt
  (#5)
kurshad is Offline
[10]Yeni Üye
 
kurshad - ait Kullanıcı Resmi (Avatar)
 
Mesaj Sayısı: 53
Açtığı Konu: 2

Level: 6 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Paylaşım: 0 / 128
Güç: 17 / 603
Tecrübe: 12%

Üyelik tarihi: Apr 2007
Kullanıcı No: 9862
Tecrübe Puanı: 23
REP Puanı : 100
REP Seviyesi : kurshad will become famous soon enoughkurshad will become famous soon enough
   
Standart 05-18-2008


hiç yorum satırı yazmıyorsunuz başkaları yazdığınız kodları nasıl anlayacak
bi de niye ingilizce insan en iyi kendi anadilinde öğrenir....
kodlara yorum yazmanız ümidiyle emeğe saygı...........
  
Alıntı ile Cevapla
Alt
  (#6)
MoKoKoCuEmrE is Offline
[10]Yeni Üye
 
MoKoKoCuEmrE - ait Kullanıcı Resmi (Avatar)
 
Mesaj Sayısı: 2,184
Açtığı Konu: 629

Level: 38 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Paylaşım: 781 / 1117
Güç: 728 / 2173
Tecrübe: 23%

Üyelik tarihi: Feb 2008
Kullanıcı No: 267800
Tecrübe Puanı: 0
REP Puanı : 1477
REP Seviyesi : MoKoKoCuEmrE has much to be proud ofMoKoKoCuEmrE has much to be proud ofMoKoKoCuEmrE has much to be proud ofMoKoKoCuEmrE has much to be proud ofMoKoKoCuEmrE has much to be proud ofMoKoKoCuEmrE has much to be proud ofMoKoKoCuEmrE has much to be proud ofMoKoKoCuEmrE has much to be proud ofMoKoKoCuEmrE has much to be proud ofMoKoKoCuEmrE has much to be proud of
   
Standart 06-15-2008


saoll
  
Alıntı ile Cevapla
Alt
  (#7)
|||SeRSeFiL||| is Offline
[10]Yeni Üye
 
|||SeRSeFiL||| - ait Kullanıcı Resmi (Avatar)
 
Mesaj Sayısı: 408
Açtığı Konu: 74

Level: 18 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Paylaşım: 44 / 444
Güç: 136 / 1073
Tecrübe: 79%

Üyelik tarihi: Feb 2008
Kullanıcı No: 256053
Nerden: Amasya
Tecrübe Puanı: 22
REP Puanı : 154
REP Seviyesi : |||SeRSeFiL||| has a spectacular aura about|||SeRSeFiL||| has a spectacular aura about
   
Standart 10-08-2008


sagolda ben bişey anlamadım



AğzıNDa BaL oLaN ArıNıN, KuYruGunda İğNeSi VaRdıR...
  
Alıntı ile Cevapla
Alt
  (#8)
BeraT =TR= is Offline
[25]Star Üye
 
BeraT =TR= - ait Kullanıcı Resmi (Avatar)
 
Mesaj Sayısı: 516
Açtığı Konu: 55

Level: 20 [♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥♥ Bé-Yêu ♥]
Paylaşım: 199 / 499
Güç: 172 / 588
Tecrübe: 96%

Üyelik tarihi: Jul 2008
Kullanıcı No: 344780
Nerden: %systemRoot%/windows/system32
Yaş: 22
Tecrübe Puanı: 18
REP Puanı : 190
REP Seviyesi : BeraT =TR= has a spectacular aura aboutBeraT =TR= has a spectacular aura about
   
Standart 10-08-2008


sagol isime yaradi, okulda java yapioz


Sony VAIO PCV-RSM22 Microsoft® Windows® XP Home Edition SP 3 Intel® Pentium® 4 2,80 GHz (Hyper Threading) Bellek: 160 GB (7200rpm) RAM: 512 (256 MB x2) DDR333 (Dual Channel DDR-333-Mode) NVIDIA® Geforce FX 5600 128 MB DDRSDRAM DVD±RW ve DVD-ROM Programlar: Advanced WindowsCare Personal, Counter-Strike, Java, KIS 2009, Mozilla Firefox, NVIDIA Drivers, Revo Uninstaller, Spybot-Search&Destroy, Steam, TuneUp Utilities, Windows Live Messenger, Windows XP Service Pack 3, WinRAR
  
Alıntı ile Cevapla
Alt
  (#9)
maybash is Offline
[10]Yeni Üye
 
maybash - ait Kullanıcı Resmi (Avatar)
 
Mesaj Sayısı: 105
Açtığı Konu: 0

Level: 9 [♥ Bé-Yêu ♥]
Paylaşım: 0 / 206
Güç: 35 / 912
Tecrübe: 25%

Üyelik tarihi: Jun 2007
Kullanıcı No: 55713
Tecrübe Puanı: 23
REP Puanı : 100
REP Seviyesi : maybash will become famous soon enoughmaybash will become famous soon enough
   
Standart 10-08-2008


bunlar ne işe yarıyo şimdi yaw :s
  
Alıntı ile Cevapla
Cevapla

Konuyu Toplam 1 Üye okuyor. (0 Kayıtlı üye ve 1 Misafir)
 
Seçenekler Arama
Stil

Yetkileriniz
Yeni Mesaj yazma yetkiniz aktif değil dir.
Mesajlara Cevap verme yetkiniz aktif değil dir.
Eklenti ekleme yetkiniz aktif değil dir.
Kendi Mesajınızı değiştirme yetkiniz aktif değil dir.

Smileler Açık
[IMG] Kodları Açık
HTML-KodlarıKapalı
Trackbacks are Kapalı
Pingbacks are Kapalı
Refbacks are Kapalı


Bütün Zaman Ayarları WEZ +3 olarak düzenlenmiştir. Şu Anki Saat: 10:49 AM .