我的问题是,当我运行我的程序时,它告诉我“运行时检查失败 #2 - 变量 'b1' 周围的堆栈已损坏。如果有此异常的处理程序,则程序可以安全地继续。”
while (!feof(fp))
{
fscanf(fp, "%2X", &a1[0]);
fscanf(fp, "%2X", &a1[1]);
fscanf(fp, "%2X", &a1[2]);
fscanf(fp, "%2X", &a1[3]);
fscanf(fp, "%2X", &a1[4]);
fscanf(fp, "%2X", &b1[0]);
fscanf(fp, "%2X", &b1[1]);
fscanf(fp, "%2X", &b1[2]);
fscanf(fp, "%2X", &b1[3]);
fscanf(fp, "%2X", &b1[4]);
if (foo==foo)
{
foo....
}
}