Hey! I just started with structs so it probably will be a stupid fail, but I dont give with the clue! Thats part of my code:
And I get these errors:Code:struct Array{ int v[]; int n; }; Array ArrayCreaAleatorio(int linf,int lsup){ int linf2; linf2 = linf; struct Array array1; array1.n = lsup-linf+1; for (int i = 0; i=n; i++){ array1.v[i] = linf2++; linf2 = linf2++; } for (int j = 0; j = (n-2); j++){ v.array1[j] = (rand()% lsup)+linf; } return array1; }
`n' undeclared (first use this function)
`v' undeclared (first use this function)