Venkat wrote:
>
> {
> ..... other code here
>
> Int_t n=9,ngr,i,j,dof;
> Int_t NGrafs=5;
const Int_t NGrafs = 5;
const Int_t n = 9;
> Double_t y[NGrafs][n];
>
> }
>
> Here's the error message..
>
> Error: Non-static-const variable in array dimension
> FILE:Reso_Thresh_ALLPLOTS.C LINE:33
> (cint allows this only in interactive command and special form macro which
> is special extension. It is not allowed in source code. Please ignore
> subsequent errors.)
> Error: Non-static-const variable in array dimension
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
The error message has told you what happened.
> FILE:Reso_Thresh_ALLPLOTS.C LINE:33
> (cint allows this only in interactive command and special form macro which
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> is special extension. It is not allowed in source code. Please ignore
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> subsequent errors.)
~~~~~~~~~~~~~~~~~~~~~~~~
It seems that your "NGrafs" and "n" arn't changed in your code. So try
"const Int_t".
This archive was generated by hypermail 2b29 : Sun Jan 02 2005 - 05:50:05 MET