|
From: Bjorn T. <bjo...@ho...> - 2003-09-16 19:13:42
|
If a static variable is declared inside a member function of a class, what
would happen?
That is, would all instances of the class use the same value, or would each
instance have its own copy of the variable?
The function is defined something like this:
int Array::unshift() // unshift
{
static int *active=first;
// the function is supposed to return the i:th element on the i:th call
}
Thanks for any help
Bjorn Terelius
_________________________________________________________________
Protect your PC - get McAfee.com VirusScan Online
http://clinic.mcafee.com/clinic/ibuy/campaign.asp?cid=3963
|