|
|
以下是我的程序:
- #include <string>
- #include <list>
- int main () {
- list<string> s;
- }
复制代码
用
编译
结果:
- test.cpp: In function `int main()':
- test.cpp:5: error: `list' undeclared (first use this function)
- test.cpp:5: error: (Each undeclared identifier is reported only once for each function it appears in.)
- test.cpp:5: error: `string' undeclared (first use this function)
- test.cpp:5: error: `s' undeclared (first use this function)
复制代码 |
|