case n: myfunction(a[0],a[1] .............. a[n-1])
问一下. 这种有没有什么好方法可以写成几行代码?
我现在做法是内嵌 asm
然后PUSH 参数
再CALL, 得到的结果总是不对.
...全文
925打赏收藏
关于多个参数函数的问题
int a[10]; int num; /*代码处理中*/ switch num{ case 1: myfunction(a[0]) case 2: myfunction(a[0],a[1]) case 3: myfunction(a[0],a[1],a[2]) case n: myfunction(a[0],a[1] .............. a[n-1]) 问一下. 这种有没有什么好方法可以写成几行代码? 我现在做法是内嵌 asm 然后PUSH 参数 再CALL, 得到的结果总是不对.