随笔分类 - C语言
数据结构和编译原理。
摘要:先放运行界面: 需求分析:客人登记入住,显示空房信息,显示客人信息,客人换房,客人退房结算,退出系统。 房间种类:大床房,单人间,双人间,三人间。 房间数:30. 1 #include <stdio.h> 2 #include <stdlib.h> 3 #include <string.h> 4 #
阅读全文
摘要:#include<stdio.h>#include<stdlib.h>#include<string.h>#define LIST_SIZE 100#define LIST_INCREMENT 10typedef int Datatype ;typedef struct{ Datatype* dat
阅读全文
摘要:#include <stdio.h>#include <stdlib.h>#include <string.h>int p,m,syn,n,sum; //p和m,作用相当于指针,用来指向下一个字符或回退一个字符,syn用于判别字符种类。 //n为循环控制变量,sum用来判别整型数是否溢出。char
阅读全文