N
news.hku.hk
suppose i have a class abc, and i have an important value stored as
int integer = 888;
when i want to declare an array of objects:
abc obj[integer]; // error said non-constant....expect constant array
size....and the like
What can i do if i really want 888 as the array size ???
int integer = 888;
when i want to declare an array of objects:
abc obj[integer]; // error said non-constant....expect constant array
size....and the like
What can i do if i really want 888 as the array size ???