hi, 

the problem is the vlaue is not a constant. its an input from a  
SetSampleQuantity(int input) method. so it has to be defined at run time (user 
input specifically) . this method called in the beginning  whne the program is 
called. how can i do that? any way to do that?
this is very weird considering it works fine on os x environment.
 ================================= 
http://www.svnstrk.blogspot.com




________________________________
From: Rob Richardson <[email protected]>
To: [email protected]
Sent: Tue, August 3, 2010 7:13:55 PM
Subject: RE: [c-prog] array initialization

  
Since you have to rebuild this code every time you change the sampleTest
value, you might as well use a copiler constant instead of a constant
whose value is not known until run time:

#define SAMPLE_SIZE 1
Vector3D randomArray[SAMPLE_SIZE];

RobR

 


      

[Non-text portions of this message have been removed]

Reply via email to