Joe Wilson

Joe Wilson

  • NA
  • 7.8k
  • 434.8k

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

Apr 24 2015 4:43 AM
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)