linux 编程中的异常解决

linux 编程中的错误解决1.问题:hash_map定义那行: ? error: ? ISO ? C++ ? forbids ? declaration ? of ?

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.

?