You should call fread like this to read an int : int num; fread(&num, sizeof(int), 1, inp);. Also, it would be wise to check the return ...
確定! 回上一頁