|
-
June 19th, 2017, 02:57 PM
#1
question of structured data
I can understand the first row and last two rows.
However, does anyone know what the remaining part means ????(line3-line16)
especially for line3-line5
1 struct Bracket
2 {
3 Bracket(char type, int position):
4 type(type),
5 position(position)
6 {}
7 bool Matchc(char c)
8 {
9 if (type == '[' && c == ']')
10 return true;
11 if (type == '{' && c == '}')
12 return true;
13 if (type == '(' && c == ')')
14 return true;
15 return false;
16 }
17 char type;
18 int position;
19 };
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|