qfedu-basic-level/day4/d8.cpp

13 lines
297 B
C++
Raw Normal View History

2023-06-15 16:43:42 +08:00
#include <iostream>
using namespace std;
int main()
{
int x1, y1, x2, y2;
cout << "请输入两个点坐标, 格式如 x1 y1 x2 y2" << endl;
cin >> x1 >> y1 >> x2 >> y2;
cout << "P1(" << x1 << "," << y1 << ")"
<< " P2(" << x2 << "," << y2 << ")" << endl;
return 0;
}