codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:
Search Forums:
  error: expression must have a constant value  fadedG2 at 01:14 on Saturday, June 16, 2007
 

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

  Re: error: expression must have a constant value  amery buck at 09:55 on Saturday, March 20, 2010
 

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.








CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums








Recent Forum Threads
•  Re: How to check number of fields in form?
•  Re: where can i post my programs to the world?
•  Re: DHTML tabletree
•  Re: Needed script or whatever it is
•  Re: navigation of control
•  Re: Image on a HTML button
•  Re: Trouble w/strings in ASP
•  Re: how to print a report having many records.
•  Re: Creating a simple client login / email database


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2010