?? cardrank.c
字號:
/* * File: cardrank.c * ---------------- * Reads in a number between 1 and 13 and writes out the * appropriate symbol for a playing card of that rank. */#include <stdio.h>#include "genlib.h"#include "simpio.h"main(){ int n; printf("What is the rank of the card (1-13)? "); n = GetInteger(); switch (n) { case 1: printf("Ace\n"); break; case 11: printf("Jack\n"); break; case 12: printf("Queen\n"); break; case 13: printf("King\n"); break; default: printf("%d\n", n); break; }}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -