I try to build dynamic string from counter variable in loop in c++ , I was thinking about simple macro.
something like this :
// its enum element string LOCAL_1, LOCAL_2 .....
    #define CREATE_STR(N) LOCAL_##N
    int ii =1;
        for(;ii<=COLS_NUMBERS_PER_WINDOW;)
        {
                     pGameObj->IniGameObj(pMainWindowObjCenter,
                                        CREATE_STR(ii),
                                        Z,                                   
                                        ii);
            GameVector.push_back(pGameObj);
            ii++;
        }
but it gives me compiler error
error C2065: 'LOCAL_ii' : undeclared identifier
Is there any other good way to build dynamic string from dynamic variable? I can use c++11.
UPDATE:
i think i just need this :
Enum C++ Get by Index
 
     
     
    