Jun 20, 2004 #1 nbgoku Programmer Joined May 25, 2004 Messages 108 Location US int tryssnn = 2; int tryssf[tryssnn]; i get an error saying that tryssf has an unknown size, its not a warning, its an error, why the heck wont it tell that im giving it a size of 2?
int tryssnn = 2; int tryssf[tryssnn]; i get an error saying that tryssf has an unknown size, its not a warning, its an error, why the heck wont it tell that im giving it a size of 2?
Jun 20, 2004 #2 ArkM IS-IT--Management Joined Oct 21, 2002 Messages 1,819 Location RU The var must be const in C++: Code: const int tryssnn = 2; int tryssf[tryssnn]; Only const expressions must appeare in array size position. Upvote 0 Downvote
The var must be const in C++: Code: const int tryssnn = 2; int tryssf[tryssnn]; Only const expressions must appeare in array size position.
Jun 20, 2004 Thread starter #3 nbgoku Programmer Joined May 25, 2004 Messages 108 Location US wowowow! thanks! Upvote 0 Downvote