#include "StdAfx.h" #include "CResFile.h" #include "T2DayParamDef.h" T2DayParamDef::T2DayParamDef(CResFile& resFile) { float div = 100.0f; for (unsigned int day = 0; day < kMaxDay; day++) { for (unsigned int whether = 0; whether < kMaxWhether; whether++) { resFile >> mEntries[day][whether].mPercent; mEntries[day][whether].mRate = mEntries[day][whether].mPercent / div; } } } /*virtual*/ T2DayParamDef::~T2DayParamDef() { }