6
Reply

How to solve a usual problem in allocating the size of array

Joe Wilson

Joe Wilson

Apr 24 2015 4:43 AM
822
I mean I want to ask user to enter the size of arrays when he/she uses my program instead of me, and when I use cin to get the size and put it as array size in brackets this error appear: the array size must have constant value and when I change the cin parameter as const int  nothing happen, please guide me to solve this problem, Thank you.

Answers (6)