bombmsc.c

来自「C.Game.Programming.For.Dummies原码」· C语言 代码 · 共 23 行

C
23
字号
#include <stdio.h>
#include <windows.h>

void dropBomb(void);	//The devious prototype

void main()
{
	printf("Press any key to drop bomb:");
	getchar();
	dropBomb();
	printf("\nYikes!\n");
}

void dropBomb()
{
	int x;

	for(x=0;x<15;x++)
	{
		printf("\nWeee!");
	}
	printf("\nSplat!!");
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?