mirror of https://github.com/string1995/eee102.git
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
27 lines
450 B
27 lines
450 B
#include "point.h" |
|
#include "tools.h" |
|
#include <iostream> |
|
|
|
void Point::Print()//输出方块 |
|
{ |
|
SetCursorPosition(x, y); |
|
std::cout << "■" ; |
|
} |
|
|
|
void Point::PrintCircular()//输出圆形 |
|
{ |
|
SetCursorPosition(x, y); |
|
std::cout << "●" ; |
|
} |
|
|
|
void Point::Clear()//清除输出 |
|
{ |
|
SetCursorPosition(x, y); |
|
std::cout << " " ; |
|
} |
|
|
|
void Point::ChangePosition(const int x, const int y)//改变坐标 |
|
{ |
|
this->x = x; |
|
this->y = y; |
|
}
|
|
|