I try to create an array. The size of it depends on the user's input. But how can I do it? or should I use string or vector instead?
I am new to C++. When I googled the problem, I still didn't get it. I tried the following code but it was not working.
const int t;
cin >>t;
double myarrary[t]={};
but my friends code works.
cin >> num;
int px[num]={};
Thank you