摘要:
1 #include<iostream> 2 #include<string> 3 using namespace std; 4 /* 5 //成员变量私有化优点: 6 1.控制成员的读写权限 7 2.检测读写有效性 8 9 */ 10 class Point 11 { 12 public://控制 阅读全文
posted @ 2019-12-07 10:48
Striving_Life
阅读(251)
评论(0)
推荐(0)
摘要:
1 #include<iostream> 2 #include<string> 3 using namespace std; 4 5 6 struct Student 7 { 8 int s_id; 9 string s_name; 10 int s_phonenum; 11 }; 12 13 st 阅读全文
posted @ 2019-12-07 09:54
Striving_Life
阅读(327)
评论(0)
推荐(0)
浙公网安备 33010602011771号