📄 strtime.cpp
字号:
//strtime.cpp
#include <time.h>
#include <iostream.h>
#include <conio.h>
void main(void)
{
char datebuf[9];
char timebuf[9];
_strdate(datebuf);
_strtime(timebuf);
cout<<"目前日期:"<<datebuf<<endl
<<"现在时刻:"<<timebuf<<endl;
getch();
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -