?? storage.h
字號:
// Storage.h: interface for the Storage class.
//
//////////////////////////////////////////////////////////////////////
#if !defined(AFX_STORAGE_H__A0CE3BC1_6AB0_44B0_8A37_78125093F1E4__INCLUDED_)
#define AFX_STORAGE_H__A0CE3BC1_6AB0_44B0_8A37_78125093F1E4__INCLUDED_
#if _MSC_VER > 1000
#pragma once
#endif // _MSC_VER > 1000
#include "fstream.h"
struct BookData
{
char isbn[14];
char bookTitle[51];
char author[31];
char publisher[31];
char dateAdded[11];
int qtyOnHand;
float wholesale;
float retail;
int showed;//標記是否已經打印
};
class Storage
{
public:
//int Max=100;//最多存儲的書的本數
BookData book[100];
static int num;//已經存儲的書的本數
public:
Storage();
void setTitle(char *,int);
void setISBN(char *,int);
void setAuthor(char *,int);
void setPub(char *,int);
void setDateAdded(char *,int);
void setQty(int,int);
void setWholesale(float,int);
void setRetail(float,int);
bool isEmpty(int);
void addBook();
void removeBook(int);
int lookBook(char *);
void BookInfo(int);
void lookUpBook(char *);
void editBook(char *);
void deleteBook(char *);
~Storage();
};
#endif // !defined(AFX_STORAGE_H__A0CE3BC1_6AB0_44B0_8A37_78125093F1E4__INCLUDED_)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -