读书人

linux 编程中的异常解决

发布时间: 2012-06-27 14:20:08 作者: rapoo

linux 编程中的错误解决

1.

问题:

hash_map定义那行: ? error: ? ISO ? C++ ? forbids ? declaration ? of ? `hash_map ' ? with ? no ? type?
hash_map定义那行: ? error: ? expected ? `; ' ? before ? ' < ' ? token?

?

解决:

?

加入引用:

#include   <ext/hash_map> #include   <string> #include   <iostream> #include   <sstream> #include   <list> using   namespace   std; using   namespace   __gnu_cxx;//需要引入

?

?

2.

?

读书人网 >编程

热点推荐