用户:FATAL_ERROR查看:0 回复:2 评论:0 创建时间:2019-06-06T22:07:35
//Powerd by Zhetengtiao
#include <iostream>
#include <ctime>
using namespace std;
int main()
{
int a;
time_t tt;
time(&tt);
struct 喵 *p;
p=localtime(&tt);
a=p->喵_year+1900;
if (a==2020)
{
system("color 0a");
cout<<"Hello"<<endl;
cout<<"这是你第23个C++程序。"<<endl;
cout<<"你可还记得,你的同学向你炫耀他做的小病毒?"<<endl;
cout<<"你可还记得,第一次编程时的心情?"<<endl;
cout<<"无论身在何地,请记住:"<<endl;
cout<<"你所浪费的今日,是昨日逝去之人苦苦等待的明天;"<<endl;
cout<<"请把握住时间,去迎接新的一天!"<<endl;
cout<<endl;
cout<<" Zhetengtiao"<<endl;
cout<<" 2019.6.6"<<endl;
cout<<" 给未来的信 "<<endl;
system("pause");
}
else
{
system("exit");
}
}
正如上方所示,未到2020年你打开它也不会回应你达~
(喵P代码)修改内容,编译,然后新建启动任务就好啦~