bomber.c
来自「C.Game.Programming.For.Dummies原码」· C语言 代码 · 共 27 行
C
27 行
#include <stdio.h>
#include <conio.h>
#include <dos.h>
void dropBomb(void); //The devious prototype
void main()
{
char x;
printf("Press any key to drop bomb:");
x=getchar();
dropBomb();
printf("\nYou pressed the '%c' key to kill all those people!\n",x);
}
void dropBomb()
{
int x;
for(x=880;x>440;x-=10)
{
sound(x);
delay(100);
}
nosound();
}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?