i am trying to create an array with the size of the first value of one file wich is the same of the first line because the first line only have one value
here is how i am trying to do it
FILE * fich;
int test;
fich=fopen(nome_ficheiro,"r");
fscanf_s(fich,"%d",&test);
int np=test;
No*aux=primeiro;
ponto pontos[np];
Since VLA are not allowed in C++ you will either need to use dynamic memory or better yet investigate std::vectors. Remember that the size of an array in C++ must be a compile time constant.