『第 5 楼』:
使用 LLM 解释/回答一下
这太好理解了,
您的recno是unsigned int 类型,而recnumber纪录号是unsinged long类型,所以recno不管怎样加加,只能在0~65535u中变化.
如果recno是unsigned long 类型,则printf("%u, %s\n",recno, str)应改为
printf("%lu, %s\n",recno, str);
This is too easy to understand,
Your recno is of type unsigned int, and the record number recnumber is of type unsinged long, so no matter how much recno is incremented, it can only change within 0~65535u.
If recno is of type unsigned long, then printf("%u, %s\n",recno, str) should be changed to
printf("%lu, %s\n",recno, str);
|