- #include "stdafx.h"
- #include "BookClass.h"
- CBookClass::CBookClass()
- {
- }
- CBookClass::~CBookClass()
- {
- }
- void CBookClass::InitBook(char *szFileName)
- {
- FILE *fp;
- char szBuf[100];
- CString szStr;
- int nValue =0;
- TGoods *Goods;
- TBook *Book;
- TBookNeedSkill *NeedSkill;
- Goods = new TGoods;
- Book = new TBook;
- Goods->nKinds = GK_book;
- fp = fopen(szFileName,"r");
- if(fp!=NULL)
- {
- while(fscanf(fp,"%s",szBuf)!=EOF)
- {
- szStr = szBuf;
- if(szStr=="いゅ