初学-类
1 #include <iostream>
2 using namespace std;
3
4 class gugu
5 {
6 public:
7
8 void tuiqian();
9
10 private:
11
12 int a;
13 char b;
14
15 };
16
17
18
19 void gugu::tuiqian()
20 {
21 cout<<"***************"<<endl;
22 }
23
24 int main()
25 { gugu tq;
26 tq.tuiqian();
27
28 return 0;
29 }
***************
Press any key to continue