C语言打字练习小游戏
#include <stdio.h>
#include <conio.h>
#include <time.h>
#include <stdlib.h>
#include <windows.h>
int getTimeDetail(int index)
{
time_t timeNow;
struct tm *timeType;
int year, month, day, hour, min, sec;
/*
Get time from local system.
*/
time(&timeNow); // get time return seconds
timeType = localtime(&timeNow); // into struct
year = timeType->tm_year + 1900;
month = timeType->tm_mon;
day = timeType->tm_mday;
hour = timeType->tm_hour;
min = timeType->tm_min;
sec = timeType->tm_sec;
// add time to second (ignored date)
int time[6] = {
y