[求助]系统时间
#include<iostream.h>
#include<time.h>
class TimeDate
{
public:
TimeDate(time_t t);
void show();
private:
time_t system;
};
TimeDate::TimeDate(time_t t)
{
t=system;
}
void show()
{
cout<<ctime(&system);
}
void main(void)
{
time_t x;
x=time(0);
TimeDate ob(x);
ob.show();
}
为什么总是出现error C2065: 'system' : undeclared identifier