6
Answers

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

Joe Wilson

Joe Wilson

9y
846
1
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)