用C语言编写宿舍管理查询系统

[复制链接]
查看11 | 回复3 | 2018-2-28 21:12:28 | 显示全部楼层 |阅读模式
以前给别人写的,完全原创,已经在VC上编译运行通过: #include#include #include #include #include typedef struct /*定义结构体数组*/ { char num[10]; /*学号*/ char name[20]; /*姓名*/ int roomID; /*房号*/ }Student; Student stu[80]; /*结构体数组变量*/ int menu_select() /*菜单函数*/ { char c; do{ ...
回复

使用道具 举报

千问 | 2018-2-28 21:12:28 | 显示全部楼层
#include "stdio.h"#include "stdlib.h" /*标准库函数*/#include "ctype.h" /*字符操作函数*/#include "string.h"typedef struct students{char name[10];int num;int room;}ADDRESS;/**...
回复

使用道具 举报

千问 | 2018-2-28 21:12:28 | 显示全部楼层
定义结构或者类,类属性包括姓名、学号、房间号...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行