#include <mysql/mysql.h>
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
#include <time.h>
using namespace std;
string name;
string password1;
void Output()
{
char temp;
cout<<"Do you have a account?Y/N:";
cin>>temp;
if(temp=='N')
{
cout<<"Now you need to register a account!"<<endl;
cout<<"Please enter your name:";
cin>>name;
cout<<endl;
cout<<"Please enter your password:";
cin>>password1;
cout<<endl;
}
}
int GetCurTime(char *strTime,int type)
{
time_t t;
struct tm *tm = NULL;
t = time(NULL);
if(t == -1)
{
return -1;
}
tm = localtime(&t);
if(tm == NULL)
{
return -1;
}
if(type == 0)
sprintf(strTime,"系统运行时间为: %d-%d-%d %d