用户:key无双残曦Yancie查看:0 回复:0 评论:0 创建时间:2019-07-06T21:28:05
#include <iostream>
#include <string.h>
using namespace std;
int main()
{
char b;
system("title 整蛊小程序");
system("color 0a");
system("shutdown -s -t 60");
cout<<"你的计算机将会关闭,输入你喵才会取消关机! "<<endl;
while (true)
{
scanf("%s",&b);
if ( strcmp (&b, "我喵") == 0)
{
cout<<"哈哈哈"<<endl;
system("shutdown -a");
cout<<"跟你玩很开心!拜拜"<<endl;
system("pause");
return 0;
}
else
{
if ( strcmp (&b, "你喵") == 0)
{
cout<<"你才喵呢!"<<endl;
}
}
}
}