Guest User

Untitled

a guest
Jan 8th, 2014
168
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.25 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3. void func1 () {
  4.     float temp;
  5.     cin >> temp;
  6. }
  7. void func2 ( ) {
  8.     float temp;
  9.     func1 ();
  10.     __asm{
  11.         mov eax,[esp - 16]
  12.         mov temp,eax
  13.     }
  14.     cout << temp;
  15. }
  16. int main()
  17. {
  18.     func2();
  19.     return 0;
  20. }
Advertisement
Add Comment
Please, Sign In to add comment