猫史档案馆


【送给未来的信】想用更酷的方式送信?试试这个!

用户:FATAL_ERRORFATAL_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代码)修改内容,编译,然后新建启动任务就好啦~


回复

上一页1 页 / 共 1下一页
FATAL_ERRORFATAL_ERROR

ps:通过ctime,可以自定义年,月,日(不太建议,因为谁知道你会在哪一天开机呢)

 

点赞0


评论


FATAL_ERRORFATAL_ERROR

点赞0


评论