相关代码 |
|
#include "h.c" void prt_instructions() { printf("%s\n", "this is the readme before the game. " "I will flip a coin;you call it.if you" " call it correctly,you win;otherwise i win" "0--heads and 1---tails"); } void prt_final_report(int win, int lose, int how_many) { printf("\n%s\n%s%3d\n%s%3d%s%3d\n", "Final report:", "number of games that you won: ",win, "number of games that you lose: ",lose, "total number of games: ",how_many); }
相关资源 |
|