I am not able to compile my program, the compiler is accusing "array type has element type incomplete" in function that prints points.
The function that prints dot:
float imprimePonto(struct armazenar p[], int n)
{
int i;
for(i=0;i<n;i++)
{
printf("(%9.2f, %9.2f)\n",p[i].x,p[i].y);
}
return 0;
}
a struct:
struct armazenar
{
float x;
float y;
};
main:
#define MAX 10
int main()
{
struct armazenar p[MAX];
int n=0;
n=func_lerN();//recebendo o numero de vetores que o usuario quer digitar.
func_lerVetor(n);
imprimePonto(p[MAX],n);
return 0;
}