?? gameloop.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 + -