- #include "stdafx.h"
- #include "FoodClass.h"
- CFoodClass::CFoodClass()
- {
- }
- CFoodClass::~CFoodClass()
- {
- }
- void CFoodClass::InitFood(char *szFileName)
- {
- FILE *fp;
- char szBuf[100];
- CString szStr;
- int nValue =0;
- TGoods *Goods;
- TFood *Food;
- Goods = new TGoods;
- Food = new TFood;
- Goods->nKinds = GK_food; //贺摸
- fp = fopen(szFileName,"r");
- if(fp!=NULL)
- {
- while(fscanf(fp,"%s",szBuf)!=EOF)
- {
- szStr = szBuf;
- if(szStr=="いゅ