![]() |
#2
单调黑白2007-11-05 17:10
回复:(单调黑白)棘手的问题,此程序如何改为面向对象...
|
棘手的问题,此程序如何改为面向对象形式,求解!
#include<time.h>
#include<iostream>
using namespace std;
int main(void)
{
struct tm *local;
time_t t;
t=time(NULL);
local=localtime(&t);
cout<<"local time and date:"<<asctime(local)<<endl;
return 0;
}