0
這個在Visual C++ 2010中編譯。C++中的一個結構體中的前向聲明編譯器錯誤
它不編譯和MINGW。
struct nextifcondinfo
{
hash_map <string, nextifcondinfo> next;
int action;
};
I get an error message:
Description Resource Path Location Type
forward declaration of 'struct nextifcondinfo' C/C++ Problem
你能告訴我在mingw中用什麼開關來解決嗎?或者你有其他想法嗎?
可能只是編譯器的一個缺陷,在這種情況下,沒有開關可以幫助:( – YePhIcK 2012-08-04 10:49:56
什麼是hash_map? – ForEveR 2012-08-04 10:52:30
散列圖是一個類似於數組的結構,其中有一個元素用於一個鍵key1-> element1和key2 - > element2類似的東西。通常用於快速(和恆定時間)訪問元素 – 2012-08-04 10:53:39