i want to make my array more flexible. My input comes from a file. I get the information of how big my array needs to be from a function.
My Codesample looks like this:
int albumsize = getAlbumnumberFromFile(inputFile);
struct Album Alben[albumsize];
Now I have to following problem ... I can't do something like this. My IDE (Visual Studio 2017) says this Error:
expression must have a constant value
Thanks Alex