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
std::vectortemplate, and all will be explained. "Googling" is not a very good way to learn C++. The best way to do so is by learning from a good C++ book.