在程序执行过程中出现:
***.exe遇到问题需要关闭。我们对此引起的不便表示抱歉。
此种问题的出现可能是由于内存越界引起。
内存越界可能是由于分配内存不够引起,比如:
CHAR str[10];
sprintf(str, "It is good to get the ID : %d", 1);
在该段程序中,由于字符串"It is good to get the ID : %d"的大小超过数组str的大小,可引起内存越界问题。
在程序执行过程中出现:
***.exe遇到问题需要关闭。我们对此引起的不便表示抱歉。
此种问题的出现可能是由于内存越界引起。
内存越界可能是由于分配内存不够引起,比如:
CHAR str[10];
sprintf(str, "It is good to get the ID : %d", 1);
在该段程序中,由于字符串"It is good to get the ID : %d"的大小超过数组str的大小,可引起内存越界问题。