We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4a60f1e commit 79290e4Copy full SHA for 79290e4
1 file changed
section1/test05.cpp
@@ -0,0 +1,32 @@
1
+// Copyright (c) 2050 by Chrono
2
+//
3
+// g++ test05.cpp -std=c++11 -o a.out;./a.out
4
+// g++ test05.cpp -std=c++14 -o a.out;./a.out
5
6
+
7
+#include <iostream>
8
+#include <string>
9
+#include <set>
10
11
12
+class DemoClass final
13
+{
14
+public:
15
+ using string_type = std::string;
16
+ using uint32_type = uint32_t;
17
+ using set_type = std::set<int>;
18
19
+ void set_name(const string_type& str);
20
+private:
21
+ string_type m_name;
22
+ uint32_type m_age;
23
+ set_type m_books;
24
+};
25
26
27
+int main()
28
29
+ using namespace std;
30
31
+ cout << "show your class." << endl;
32
+}
0 commit comments