ciao ho un grandissimo problema...non riesco a far girare questo programma:
#include <stdio.h>
#include <math.h>
#include <string.h>
struct puntonelpiano
{
float x;
float y;
}
struct cerchio
{
struct puntonelpiano posizione_centro;
float raggio;
}
int main()
{
struct puntonelpiano;
struct cerchio;
float xa, ya;
printf("inserisci le coordinate del punto:");
scanf("%f;%f",xa,ya);
return 0;
}
struct centro_cerchio_minore (char vettore c[MAX_DIM],int n,struct puntonelpiano)
{
struct puntonelpiano;
struct cerchio posizionedelcentro;
float xa,xb,ya,yb,raggio;
int i,j=0;
for (i=0;i<n;i++)
{
if(sqrt((posizionecentro.xb-xa)^2+(posizionecentro.yb-ya)^2) < raggio)
printf("(%f,%f)",&xb,&yb)
else
j++
}
if(j==n)
return (0.0,0.0);
}
mi da questi errori:
c.17 two or more data types in declaration of 'main'
c.17 two or more data types in declaration of 'main'
c.29 parse error before "char"
c.36 parse error before "for"