/*c++调用系统日期与时间
方法:c++中,time类中的日期与时间对象的调用
方法:c++中,time类中的日期与时间对象的调用
by adengou 2010.8.18
dev c++ 5.0编译通过
*/
#include <iostream>
#include<time.h>
using namespace std;
class user_action
{
private:
char chA;
time_t nowtime;
public:
user_action(char chB){chA=chB;}
void system_callback(void)
{ switch(chA)
{
case '?':question(); break;
case '1':system_time(); break;
case '2':system_date(); break;
case 'q':quit_system();break;
default:cout<<"菜单中没有"<<chA<<"选项"<<endl;
}
}
void question(void)
{
cout<<"显示帮助"<<