qfedu-cpp-level/day7/d9/main.cpp

15 lines
183 B
C++
Raw Permalink Normal View History

2023-08-01 18:51:53 +08:00
#include "MyPoint.h"
int main()
{
cout << "p1: ";
Point<int> p1(10, 20);
p1.show();
cout << "p2: ";
Point<float> p2(10.2, 14.5);
p2.show();
return 0;
}