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