Пример У меня есть программа:
class TestStatic
{
private:<br>
static int staticvariable;
public:<br>
TestStatic() {
this->staticvariable = 0;
cout << this->staticvariable;
}
~TestStatic() {}
};
int main() {
TestStatic object;
return 0;
}
почему этот указатель не может получить доступ к staticvariable. Я не понимаю почему.