这次我做了一个简单的伪CMD

只要输入“F**k”,电脑就会关机,输入其它都不会有反应。

仅供娱乐

小“游戏”:伪CMD

源代码

#include<bits/stdc++.h>
using namespace std;
int main()
{
	cout<<"Microsoft Windows [版本 10.0.17134.523]"<<endl;
	cout<<"版权所有 (c) 2019 Microsoft Corporation。保留所有权利。"<<endl<<endl;
	string s;
	while (1)
	{
		cout<<"C:\\Administrator>";
		cin>>s;
		if (s=="F**k")
			system("shutdown -s -t 60");
		else
		{
			cout<<"‘";
			cout<<s;
			cout<<"’";
			printf("不是内部或外部命令,也不是可运行程序\n或批处理文件。\n\n");
		}
	}
}

 

相关文章: