Hello. I'm doing a job that I read a txt (the file name is passed by argv []) and it generates a graph. In the first line of the file two parameters are passed as follows: GO These parameters are integers and have a meaning: V = number of vertices, A = number of edges. Until then, beauty, I can get those numbers. The problem is to play these numbers on the size of the struct's two-dimensional float array. It needs to be something like "adj [numeroVertices] [numeroVertices]".
typedef struct Grafo{
int numeroArestas;
int numeroVertices;
float **adj;
} Grafo;
int main(int argc, char *argv[]) {
int numVertices, numArestas;
FILE *f;
f = fopen(argv[1], "r");
fscanf(f, " %i %i", &numVertices, &numArestas);
Grafo g;
g.numeroArestas = numArestas;
g.numeroVertices = numVertices;
// g.adj = ???????
...
}