图书信息管理系统(C语言)
发布时间
阅读量:
阅读量
题目信息:
- 每类图书包含以下三项数据:编号、名称及定价
- 查询:依据给定的编号检索对应图书的详细信息,并定位其在表格中的具体位置
- 添加
- 移除
- 更改:依照指定的编号,调整图书的定价信息
- 排列:按价格从低至高对表格中的图书进行排序
- 统计:统计表格中图书的总数
#include<iostream>
#include<string.h>
using namespace std;
typedef struct{
char no[20];
char name[50];
float price;
}ElemType;
typedef struct Node{
ElemType data;
struct Node *next;
}Node;
int Init(Node *&L){ //初始化表
L = new Node;
L->next = NULL;
return 1;
}
void Creat(Node *L){ //创建表
int n;
cout<<"please input
全部评论 (0)
还没有任何评论哟~
