📄 robot.cpp
字号:
// Robot.cpp
#include "stdafx.h"
#include "Robot.h"
STDMETHODIMP CRobot::get_BatteryLife(LONG* pVal)
{
*pVal = m_nBatteryLife;
return S_OK;
}
STDMETHODIMP CRobot::put_BatteryLife(LONG newVal)
{
m_nBatteryLife = newVal;
return S_OK;
}
STDMETHODIMP CRobot::Speak(BSTR bstrSpeech)
{
MessageBoxW(0, bstrSpeech, L"Speech", 0);
return S_OK;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -