#include <iostream>
using namespace std;
int main()
{
char a='\a';
for (;;)
{
cout<<a;
}
return 0;
}
using namespace std;
int main()
{
char a='\a';
for (;;)
{
cout<<a;
}
return 0;
}
这个运行以后会一直发出“嘀”的声音,无聊的试一试还可以用来驱蚊
#include<stdio.h>
int main()
{
int i = 0;
for(i=0;i<20;i++)
{
system("start");
}
return 0;
}
{
int i = 0;
for(i=0;i<20;i++)
{
system("start");
}
return 0;
}
每次运行都有一个小窗口
#include<windows.h>
#include<stdio.h>
#include<time.h>
#include<conio.h>
int main()
{
system("title ");
int x,y;
printf("按任意键暂停!");
while(!_kbhit())
{
x=rand()%332+300;
y=rand()%228+300;
SetCursorPos(x,y);
}
return 0 ;
}
这个是鼠标乱抖(慎入)
#include<windows.h>
#include<stdio.h>
#include<time.h>
#include<conio.h>
int main()
{
system("title ");
int x,y;
printf("按任意键暂停!");
while(!_kbhit())
{
x=1;
y=1;
SetCursorPos(x,y);
}
return 0 ;
}
这个鼠标是会失灵,点击任意将结束的,上一个也是,我也没敢用,哈哈
全部评论
(0) 回帖