- 博客(7)
- 收藏
- 关注
原创 线性表的基本操作(顺序表)
#include <stdio.h>#include <stdlib.h>#include <stdbool.h>#include <string.h>#define MAXSIZE 10#define ALPHA 20typedef struct{ char name[ALPHA]; int n;}Item;typedef struct{ Item *item; //指向数据的指针 int len; //个数 }Lis
2021-11-04 15:25:32
136
原创 c语言打字母小游戏
#include <stdio.h>#include <conio.h>#include <stdbool.h>#include <time.h>#include <ctype.h>#include <windows.h>#define WIRD 50#define HIGH 25struct Word{ int x; int y; char ch; bool flag; };int count = 0;
2021-10-24 16:50:30
2161
原创 c语言控制台贪吃蛇
main.c#include <stdio.h>#include "snake.h"char * s_gets(char *st, int n);void start(snake *ps, food *pd, score *ft); //开始游戏 void open(FILE *pf,score *ps,score *pt); // 打开记录文件 void show(FILE *sp,score *ps); //打印排行 void Interface(void); //游戏
2021-10-19 17:07:09
441
原创 《c primer plus》12.9 编程练习 第9题
#include <stdio.h>#include <stdlib.h>#include <string.h>#define NUM 20char ** word(int score);void show(char ** ps, int n);int main(void){int i;char **ch;int score;printf(“你要输入多少个单词: “);while(scanf(”%d”, &score)==1 &&a
2020-12-24 14:25:12
301
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人