int place = determinePlace(input);
const int arraySize = (place + 1);
int decimal[arraySize] = {};
Hi!
I tried to use a const int variable to define the array size of decimal[]. However, error C2057 and error C2466 keeps on coming up.
Are there any suggestions?
constexpr(but that probably won't work here, unlessdeterminePlaceis aconstexprfunction, andinputis aconstexpralso; which is very unlikely)