book.h
//book.h
struct Book
{
char name[50];
float price;
int count;
Book *next;
};
void addBook(Book* head);//1
void listBook(Book* head);//2
void findBook(Book* head, char* name);//3
void editBook(Book* head, char* name);//4
void statBook(Book* head);//5
void sort(Book* head);//7
void menu();
book.cpp
//book.cpp
#include <iostream>
#include <iomanip>
#include<cstring>
#include "book.h"
using namespace std;
void menu()
{
cout<<"************图书销售管理系统****************"<<endl;
cout<<" 1. 添加图书"<<endl;
cout<<" 2. 显示图书信息"<<endl;
cout<<" 3. 查找图书"<<endl;
cout<<" 4. 修改图书信息"<<endl;
cout<<" 5. 图书信息统计"<<endl;
cout<<" 6. 清除屏幕重置"<<
|