菜鸟的博客

纵有疾风起,人生不言弃。

导航

2023年5月23日 #

2023.5.23

摘要: 1 #include <iostream> 2 #include <iomanip> 3 using namespace std; 4 float PI = 3.14159f; 5 class Shape 6 { 7 public: 8 virtual float getArea() = 0; 9 阅读全文

posted @ 2023-05-23 21:24 hhmzd233 阅读(10) 评论(0) 推荐(0)

new的用法复习

摘要: 1 #include <iostream> 2 using namespace std; 3 int* func() 4 { 5 int* p = new int(10); 6 return p; 7 } 8 void test01() 9 { 10 int* p = func(); 11 cout 阅读全文

posted @ 2023-05-23 10:40 hhmzd233 阅读(9) 评论(0) 推荐(0)