moolahservice.cpp
来自「C++ Source code from a tutorial」· C++ 代码 · 共 20 行
CPP
20 行
#include "stdafx.h"
#include "MoolahService.h"
#include "Global.asax.h"
#include <time.h> // REMEMBER to add this for time_t, below.
namespace MoolahService
{
int MoolahClass::GetWorth(int donation) {
time_t seconds;
time(&seconds);
return (-1 * 10000 * seconds) + donation;
}
int MoolahClass::GetYourDebt() {
time_t seconds;
time(&seconds);
return -1 * 25000 * seconds;
}
};
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?