⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gameloop.c

📁 The art and science of c_source code!
💻 C
字号:
/* * File: gameloop.c * ---------------- * This program is used as an illustration of the * StringEqual function. */#include <stdio.h>#include "genlib.h"#include "simpio.h"#include "strlib.h"/* Function prototypes */void PlayOneGame(void);/* Main program */main(){    string answer;    while (TRUE) {        PlayOneGame();        printf("Would you like to play again? ");        answer = GetLine();        if (StringEqual(answer, "no")) break;    }}/* * Function: PlayOneGame * Usage: PlayOneGame(); * --------------------- * This is a dummy function that could be replaced by * any game-playing program. */void PlayOneGame(){    printf(". . . play the game . . .\n");}

⌨️ 快捷键说明

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