How can i declare an array with variable size? i dont want it to be dynamic array, it have to be static. I mean the following:
int size;
cin>>size;
float array[size];
the previous code when compiled gives me that a constant expression required for the array declaration, although an integer value is already assigned to "size" by "cin" ...
So is there a solution so i can modify the previous code so it'll work?? (without using a dynamic array)..
Appreciated..