📄 move.cpp
字号:
// Move.cpp
#include <iostream>
#include "Move.h"
Move::Move(double a, double b)
{
x = a;
y = b;
}
void Move::showmove()const
{
using std::cout;
using std::endl;
cout<<"current x,y values are:\n";
cout<<"x: "<<x<<endl;
cout<<"y: "<<y<<endl;
}
Move Move::add(const Move & m)const
{
Move temp;
temp.x = x + m.x;
temp.y = y + m.y;
return temp;
}
void Move::reset(double a, double b)
{
x = a;
y = b;
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -