User forums > General (but related to Code::Blocks)
Code Blocks 17.12: why i don't get the vector structure list?
(1/1)
cambalinho:
see these structure:
--- Code: ---struct FunctionList
{
string Name;
string Return;
vector<string> ParametersType;
};
vector <FunctionList> FuncList;
--- End code ---
when i do:
--- Code: ---FuncList[FunctionListIndex].
--- End code ---
i only get these on list:
--- Code: ---_M_emplace_aux()
--- End code ---
why i don't get the structure list?
(i'm sorry, but i don't know the name of that menu list)
oBFusCATed:
Are you talking about the code completion popup list?
If yes, then probably our parser has failed to parse your code...
cambalinho:
after more and more search, i found the 'solution'.
on my header file i added the:
--- Code: ---namespace std;
--- End code ---
but now on cpp file...
on header file, maybe the list is showed.... but not on cpp... unless we add the same line.
after added the same line, the list is showed.. strange why these happens...
thanks for all
cambalinho:
oBFusCATed yes the code completion popup list(but when we add the dot)
cambalinho:
i did a mistake... it's:
--- Code: ---using namespace std;
--- End code ---
Navigation
[0] Message Index
Go to full version