Sei sulla pagina 1di 1

void MyFilledCircle( Mat img, Point center )

{
int thickness = -1;
int lineType = 8;
circle( img,
center,
w/32.0,
Scalar( 0, 0, 255 ),
thickness,
lineType );
}
int inp1[10],inp2[10];
int counter=0;
char path[100];
printf("Enter Text file:");
scanf("%s",path);
FILE *fp;
fp = fopen (path, "r");
if(fp == NULL)
{
printf("number DOES NOT EXISTS!");
}
else
{
while(!feof(fp)) /*here's my problem*/
{
fscanf(fp, "%d%d\n", &inp1[counter],&inp2[counter]); /*f
scanf is used*/
printf("%d %d\n",inp1[counter],inp2[counter]); /*just fo
r checking*/
counter++;
}
}

Potrebbero piacerti anche