Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating Array Problem

Status
Not open for further replies.

nbgoku

Programmer
May 25, 2004
108
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?
 
The var must be const in C++:
Code:
const int tryssnn = 2;
int tryssf[tryssnn];
Only const expressions must appeare in array size position.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top