Skip to content

Commit 79290e4

Browse files
committed
test05.cpp
1 parent 4a60f1e commit 79290e4

1 file changed

Lines changed: 32 additions & 0 deletions

File tree

section1/test05.cpp

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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+
public:
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

Comments
 (0)