Community Sites
Create your own community website and start earning today !
It's Free !
Forum
Resources
Mentors
Projects
Entrance Exams
Question Papers
Colleges
Courses
Universities
Schools
Make Money
Communities
Members
Bookmarks
Polls
Fresher Jobs
Strange Photos
Academic Projects
New Member FAQ
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
Nemish
(56)
Manjunath
(31)
Namita
(17)
Last 7 Days
Girish Patil
(1344)
palvir sarao
(1081)
sunil
(1055)
more...
Awards & Gifts
Online Exams
Aptitude Questions
General Aptitude Tests
Medical Entrance
Engineering Entrance
Bank Tests
TOEFL & IELTS Questions
Fresher Jobs
Our fresher job section is exclusively for fresh graduates! Find jobs for freshers in major Indian cities including Bangalore, Chennai, Hyderabad, Pune or Kochi
Resources
Find educational articles, blogs, discussion threads and other resources.
Colleges
Find details about any college in India or search for courses.
C++ program to declare static member variable count number of object created and destroyed
Posted Date: 15 Mar 2008 Resource Type:
Articles/Knowledge Sharing
Category:
Computer & Technology
Posted By:
ashish singh
Member Level:
Diamond
Rating:
Points
: 1
//program to declare static member variable count number of object created and destroyed//
#include
#include
class man
{
static int no;
char name;
int age;
public:
man()
{
no++;
cout<<"\n NUMBER OF OBJECTS EXIST:"<
}
~man()
{
--no;
cout<<"\n NUMBER OF OBJECTS EXIST:"<
}
};
int man::no=0;
void main()
{
cirscr();
man A,B,C;
cout<<"\nPRESS ANY KEY TO DESTRY OBJECT";
getch();
}
Responses
No responses found. Be the first to respond and make money from
revenue sharing program
.
Feedbacks
Popular Tags
What are tags ?
Search Tags
Sign In
(No tags found.)
Post Feedback
This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must
Sign In
to post a response.
Next Resource:
C++ program to perform manipulation using an integer and object using friend functin
Previous Resource:
C++ program for Random file
Return to Discussion Resource Index
Post New Resource
Category:
Computer & Technology
Post resources and
earn money
!
Related Resources
Things to do to keep your IT job from takin over your Life
C Program -Calculation of simple interest for 3 sets of p, n and r
C Program to Display contents of a file on screen
Reduce 10 Seconds Scandisk Count Down Time During XP Boot
C++ program to overload and binary operator
Watch TV Channels
Watch Asianet TV online
Kairali TV in Internet
Surya TV online
Amritha TV Channel
Contact Us
Privacy Policy
Terms Of Use
SpiderWorks Technologies Pvt Ltd. 2006 - 2007 All Rights Reserved.