JiuDaiClass.cpp
上传用户:garry_shen
上传日期:2015-04-15
资源大小:45647k
文件大小:3k
- // JiuDaiClass.cpp: implementation of the CJiuDaiClass class.
- //
- //////////////////////////////////////////////////////////////////////
- #include "stdafx.h"
- #include "JiuDaiClass.h"
- //////////////////////////////////////////////////////////////////////
- // Construction/Destruction
- //////////////////////////////////////////////////////////////////////
- CJiuDaiClass::CJiuDaiClass()
- {
-
- }
- CJiuDaiClass::~CJiuDaiClass()
- {
- // delete lpGoods;
- // delete lpJiuDai;
- }
- void CJiuDaiClass::InitJiuDai(char *szFileName)
- {
- FILE *fp;
- char szBuf[100];
- CString szStr;
- int nValue =0;
- TGoods *Goods;
- TJiuDai *JiuDai;
- Goods = new TGoods;
- JiuDai = new TJiuDai;
- Goods->nKinds = GK_jiudai; //贺摸
- fp = fopen(szFileName,"r");
- if(fp!=NULL)
- {
- while(fscanf(fp,"%s",szBuf)!=EOF)
- {
- szStr = szBuf;
- if(szStr=="いゅ