I'm sorry because I think this is a popular fault but I haven't found why it happened yet.
this is a code that has that fault:
void readfile(){
FILE *f;
int u,v;
f=fopen(fi,"r");
fscanf(f,"%d%d%d%d",&n,&m,&s,&t);
for (int i=1;i++;i<=n)
for (int j=1;j++;j<=n) c[i][j]=(i!=j)? Oo:0;
for(int i=1;i++;i<=m) fscanf(f,"%d%d%d",&u,&v,&c[u,v]);
fclose(f);
}
when I compile, no error.
But when I debug, the message appears at line fscanf(f,......)
anyone help me, please?
thanks :)