討論串[問題] struct 取值跟宣告
共 3 篇文章
首頁
上一頁
1
下一頁
尾頁

推噓4(4推 0噓 0→)留言4則,0人參與, 最新作者stupid0319 (徵女友)時間15年前 (2010/10/15 13:07), 編輯資訊
0
0
0
內容預覽:
struct S{. int a[10];. };. main(){. S test;. test.a[0]=1;. LPVOID x = &test;. __asm mov eax,x;. funA();. }. funcA(){. S* lps;. __asm mov lps,eax. prin

推噓7(7推 0噓 22→)留言29則,0人參與, 最新作者loveflames (咕啾咕啾魔法陣)時間15年前 (2010/10/15 09:12), 編輯資訊
0
0
0
內容預覽:
不用參數的取法. #include <stdio.h>. struct S{. int a[10];. };. void funcA(){. int a;. __asm{. mov edx,[ebp]. mov ebx,[edx-40]//如果compiler有對齊之類的就未必是40. mov a,
(還有54個字)

推噓4(4推 0噓 2→)留言6則,0人參與, 最新作者freeself (free)時間15年前 (2010/10/15 08:05), 編輯資訊
0
0
0
內容預覽:
struct S{. int a[10];. }. main(){. S test;. test.a[0]=1;. }. funcA(){. 這邊如果要取得 test 中的值要如何達到?. }. --. 發信站: 批踢踢實業坊(ptt.cc). ◆ From: 114.32.32.240.
首頁
上一頁
1
下一頁
尾頁