[Dev-C++] "static" seems a bit confucius... :D
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: <gen...@ya...> - 2003-09-22 03:59:09
|
yo /Per,
4give me if i'm wrong, but i thought item 4 was for those variables which are *declared **in** the class* , not in functions belonging to the class. if my memory serves me right, the query was about
class test
{
public:
void f();
}
void test::f()
{
static int cow = 0;
cow++; std::cout << cow << std::endl;
}
or something likewise. if some1 will take Confucius away, i'll gladly get back to my TCPL :D.
---------------------------------
Want to chat instantly with your online friends? Get the FREE Yahoo!Messenger |