bigjerk4.c

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

C
28
字号
#include <stdio.h>

void jerk(int repeat, char c);

void main()
{
	printf("He calls me on the phone with nothing say\n");
	printf("Not once, or twice, but three times a day!\n");
	jerk(1,'?');
	printf("He insulted my wife, my cat, my mother\n");
	printf("He irritates and grates, like no other!\n");
	jerk(2,'?');
	printf("He chuckles it off, his big belly a-heavin'\n");
	printf("But he won't be laughing when I get even!\n");
	jerk(3,'!');
}

/* This is the jerk() function */

void jerk(int repeat, char c)
{
	int i;

	for(i=0;i<repeat;i++)
		printf("Bill is a jerk%c\n",c);
}

⌨️ 快捷键说明

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