#include <map>using namespace std; typedef map<string, float> StringFloatMap;int main(){ return 0;}编译不通过 错误说3 13 [Error] 'string' was not declared in this scope
哦哦哦 谢谢了,太感谢了。对了 我还有个问题就是,如果不用map可以实现关联数组吗?
没试过, 办法应该有, 不过我不会 XD