#include <iostream.h>
#include<conio.h>
class test
{
int code;
static int count; // static member variable
public :
void setcode (void)
{
code = ++count;
}
void showcode (void)
{
cout << "Object number : " << code << "\n";
}
static void showcount(void) // static number function
{
cout << "Count : "<<count<<"\n";
}
};
int test :: count;
int main()
{
test t1, t2;
clrscr();
t1.setcode();
t2.setcode();
test :: showcount(); // accessing static function
test t3;
t3.setcode ( );
test :: showcount();
t1.showcode();
t2.showcode();
t3.showcode();
getch();
}
#include<conio.h>
class test
{
int code;
static int count; // static member variable
public :
void setcode (void)
{
code = ++count;
}
void showcode (void)
{
cout << "Object number : " << code << "\n";
}
static void showcount(void) // static number function
{
cout << "Count : "<<count<<"\n";
}
};
int test :: count;
int main()
{
test t1, t2;
clrscr();
t1.setcode();
t2.setcode();
test :: showcount(); // accessing static function
test t3;
t3.setcode ( );
test :: showcount();
t1.showcode();
t2.showcode();
t3.showcode();
getch();
}
telefonsex
ReplyDeleteEverything is very open with a clear explanation of
the issues. It was really informative. Your site is useful.
Thanks for sharing! telefon sex
My blog post blog
Ahaa, its good discussion concerning this piece
ReplyDeleteof writing at this place at this weblog, I have read all that, so at this time me also commenting here.
Look into my site :: Criminal Case Cheats
Hello you have done so nice work. Well and responsive blog thank you dear admin well designed Keep it up thank you
ReplyDeleteRegards:
windows 10 loader
ReplyDeletehttp://codeprecisely.blogspot.in//2011/11/program-to-illustrate-static-members-in.html
Parallels Desktop 11 Crack
ReplyDeleteBalıkesir
ReplyDeleteBursa
Mersin
Konya
Van
HZE
Kırşehir Lojistik
ReplyDeleteHakkari Lojistik
Kars Lojistik
Konya Lojistik
Kilis Lojistik
13JZ
E5F6E
ReplyDeleteSivas Evden Eve Nakliyat
Iğdır Evden Eve Nakliyat
Samsun Evden Eve Nakliyat
Edirne Evden Eve Nakliyat
Isparta Evden Eve Nakliyat
98F21
ReplyDeletekütahya sesli görüntülü sohbet
yozgat ücretsiz sohbet uygulaması
gümüşhane mobil sohbet siteleri
samsun sesli görüntülü sohbet
adıyaman muhabbet sohbet
antalya rastgele görüntülü sohbet ücretsiz
canli sohbet bedava
karabük kadınlarla görüntülü sohbet
bartın sohbet sitesi
0815D
ReplyDeletesolflare
poocoin
defillama
dcent
onekey
eigenlayer
satoshi
yearn
ledger desktop
9CFEE258BD
ReplyDeleteinstagram takipçi alma siteleri
begeni satin al
telafili takipçi
güvenilir takipçi
bot takipçi
1B11F2984B
ReplyDeleteinstagram takipçi hizmeti
begeni satin al
takipçi
düşmeyen takipçi
garantili takipçi
693EE41867
ReplyDeletetwitter takipçi satın al
beğeni satın al
fake takipçi
instagram takipçi
ig takipçi