69,374
社区成员
发帖
与我相关
我的任务
分享
#include<stdio.h>
#include<ctype.h>
#include<stdlib.h>
#include<limits.h>
#include<stdarg.h>
#include<assert.h>
#include<time.h>
void main(){
int *a=(int*)calloc(4,2);
system("color 4E");
struct tm *k;
// printf("%d",d.tm_sec);
exit(0);
}
#include<stdio.h>
#include<ctype.h>
#include<stdlib.h>
#include<limits.h>
#include<stdarg.h>
#include<assert.h>
#include<time.h>
void main(){
int *a=(int*)calloc(4,2);
// system("color 4E");
struct tm *k;
// printf("%d",d.tm_sec);
exit(0);
}
#include<stdio.h>
#include<ctype.h>
#include<stdlib.h>
#include<limits.h>
#include<stdarg.h>
#include<assert.h>
#include<time.h>
int main()
{
int* a = (int*)calloc(4, 2);
struct tm* k;
system("color 4E");
time_t t = time(NULL);
k = localtime(&t);
printf("%d\n", k->tm_sec);
return 0;
}
#include <iostream>
#include <iomanip>
#include <ctime>
int main()
{
std::time_t t = std::time(0);
std::tm* p = std::localtime(&t);
printf("%d",p->tm_sec);
return 0;
}