calculating the quantity of people in a given class
<p>how can one create a <code>class</code> with a <code>constructor</code> that counts the number of people who are alive,if i have 10 people it should count the quantity of people who are alive,people should be objects in this example,lets say i have a <code>class man</code> like this below</p>

<pre><code>class man{

     private:
     string name;

   man(string name=""){
     cout&lt;&lt;"there 10 people alive"&lt;&lt;endl;

~man(){}
};
int main(){


}
</code></pre>

<p>i am getting confused on how to go about it,i really need a simple example  i want to use the set and get methods</p>
