weaponclass.cpp
来自「mud游戏人在江湖」· C++ 代码 · 共 42 行
CPP
42 行
// WeaponClass.cpp: implementation of the CWeaponClass class.
//
//////////////////////////////////////////////////////////////////////
#include "stdafx.h"
#include "WeaponClass.h"
//////////////////////////////////////////////////////////////////////
// Construction/Destruction
//////////////////////////////////////////////////////////////////////
CWeaponClass::CWeaponClass()
{
}
CWeaponClass::~CWeaponClass()
{
// delete lpGoods;
// delete lpWeapon;
}
void CWeaponClass::InitWeapon(char *szFileName)
{
FILE *fp;
char szBuf[100];
CString szStr;
int nValue =0;
TGoods *Goods;
TWeapon *Weapon;
Goods = new TGoods;
Weapon = new TWeapon;
Goods->nKinds = GK_weapon; //贺摸
fp = fopen(szFileName,"r");
if(fp!=NULL)
{
while(fscanf(fp,"%s",szBuf)!=EOF)
{
szStr = szBuf;
if(szStr=="いゅ
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?