如图,想调用 section 中的成员 name,但是会报错,请问该如何调用 section 中的成员
1834325559
(这扯淡的青春)
1
platypus
(platypus)
2
se 的类型是 pair<string, Section>,要获取 Section 字段,需要引用 se.second。此外,sections 是一个无序映射,对给定键,值的类型是 Section。例如 sections[“foo”] 是一个 Section 类型。
1 Like
Related topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
已解决 | 1 | 114 | May 23, 2024 | |
About the 计算机系统导论 category | 1 | 376 | February 27, 2024 | |
2.2 Release 模式下编译报错 hit.Intersection::t 可能未初始化 | 2 | 76 | September 8, 2024 | |
Gdb 使用求助 | 3 | 126 | May 24, 2024 | |
test2 提问 | 1 | 97 | June 1, 2024 | |
想请教一个关于 link 的问题 | 1 | 116 | May 30, 2024 | |
test4 提问 222 | 1 | 109 | June 2, 2024 | |
请问这部分要怎么理解 | 1 | 123 | May 22, 2024 | |
计算机操作系统实验动态模块篡改系统调用为什么返回值不正确 | 11 | 151 | December 1, 2024 | |
写 C 碰见的奇怪问题 | 4 | 96 | July 5, 2024 |