|
Hello. I understand that this error means that the value must be constant but i am not understanding why i am getting it. Why does it have to be constant? I have never had this problem before. below is the portion of code that is giving me the problem.
else if(choice == 1){
while (i <= inputIndex ){
if (inputList == sProcess){
if (processFlag == 0){
// processTable[processIndex] = new inputNode(inputList, parameterList, NULL);
inputNode* processTable[processIndex] = new inputNode(inputList, parameterList, NULL);
processFlag = 1;
i++;
} //if
else {
processIndex++;
i++;
processFlag = 0;
} //else
} //if
} //while
choice = 0;
} //else if
|
|
and the error i recieve is...
cxx: Error: assignment1.cpp, line 202: expression must have a constant value
inputNode* processTable[processIndex] = new inputNode(inputList, parameterList, NULL);
-------------------------------------^
cxx: Info: 1 error detected in the compilation of "assignment1.cpp".
|
|
can somebody please explain to me why i am getting this error and how i can fix the problem. thanks in advance.
Greg
|
|
|
Ground shaking content i get form your blog. Very nice post about constant value. Thanks for your beneficial information about 642-359 free dumps, 642-631 dumps and 642-654 dumps certifications. These are the best certifications in the world.
|
|
|
|
|
|
|
|