t3intro.c

来自「视频开发工具 C语言源程序。(视频处理)」· C语言 代码 · 共 34 行

C
34
字号

/*
     HEADER:    CUG270.04 ;
     TITLE:     TTT3D Introduction subroutine;
     DATE:      06/08/1988 ;
     VERSION:   1.0 ;
     FILENAME:  T3INTRO.C ;
     SEE-ALSO:  T3.DOC;
     AUTHORS:   Scott Holland;
*/

/* COPYRIGHT 1988  SCOTT HOLLAND */

#include <stdio.h>
#include "t3global.h"

intro()
  {
    printf("\n");
    printf("This is Three Dimensional Tic-Tac-Toe.\n\n");
    printf("The purpose of the game is to get four squares in a row\n");
    printf("using columns, rows, perpendiculars and diagonals.\n\n");
    printf("To enter your move, enter a three digit number\n");
    printf("representing the level followed by the row followed\n");
    printf("by the column.\n");
    printf("If you wish to skip your move on the first move to allow\n");
    printf("the computer to move first, enter a zero.\n");
    printf("\nIf you wish to quit at any time, type a Q.\n");
    printf("\n\nType ENTER to begin.\n\n");

    while(getc(stdin) != '\n') ; /* Wait for enter */

  }

⌨️ 快捷键说明

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