十楼的蚊子 电影:用c语言怎么得到系统日期
来源:百度文库 编辑:高校问答 时间:2024/05/06 17:42:58
用c语言怎么得到系统日期
#include <time.h>
#include <stdio.h>
void main( void )
{
struct tm when;
time_t now, result;
int days;
time( &now );
when = *localtime( &now );
printf( "Current time is %s\n", asctime( &when ) );
}