在VC内联汇编中,
myarray[]是个int型的数组
用循环来输入数组,以下是循环内的代码
C/C++ code
char inputformat[]="%d";
Assembly code
lea eax,myarray[ebx]; //
push eax; //
lea eax,inputformat; // achieve the number input
push eax; //
call scanf; //
add esp,8; //
输入数字都不会有问题,一旦输入字母,就会无限循环.请问如何处理这种问题啊?
谢谢各位汇编大神~