9787302257646 Data-Structure 35.00
9787302164340 Operating-System 50.00
9787302219972 Software-Engineer 32.00
9787302203513 Database-Principles 36.00
9787810827430 Discrete-Mathematics 36.00
9787302257800 Data-Structure 62.00
9787811234923 Compiler-Principles 62.00
9787822234110 The-C-Programming-Language 38.00
0 0 0
上面是图书信息,要求编写代码进行以下操作
1、修改图书价格信息
高于图书平均价格的图书价格增长为原来的10%低于或等于平均价格的图书价格变为原来的20%
输出所有图书价格信息
2、排序,将所有图书按照价格从大到小排序
输出图书信息
代码;
#include<iostream>
#include<string>
#include<iomanip>
#define TRUE 1
#define FALSE 0
#define MAXSIZE 200
using namespace std;
typedef struct
{
string ISBN;//图书ISBN号码
string NAME;//书名
float PRICE;//图书价格
}Book;
typedef struct
{
Book* elem;//Book类型数组指针
int length;//顺序表长
}List;
int InitList_L(List& L);
int InsertList_L(List& L);
int PrintList_L(List L);
int SortList_L(List L);
int ModifyList_L(L