c++有个内置宏定义,可以输出时间
就是__TIME__
具体看代码
#include<bits/stdc++.h>
using namespace std;
int main() {
cout << "当前时间\t" << __TIME__ << "\n";
return 0;
}
第15次发博客
今天10月24日,祝大家程序员节快乐!
c++有个内置宏定义,可以输出时间
就是__TIME__
具体看代码
#include<bits/stdc++.h>
using namespace std;
int main() {
cout << "当前时间\t" << __TIME__ << "\n";
return 0;
}
第15次发博客
今天10月24日,祝大家程序员节快乐!