Guest User

Untitled

a guest
Jun 20th, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main()
  5. {
  6.     int *signal;
  7.     int adress = 0x0f6a2f1;
  8.     //int self;
  9.  
  10.     signal = reinterpret_cast<int*>(adress);
  11.  
  12.     //cout<<signal; // 00F6A2F1  BASE 10  
  13.  
  14.     //cout<<endl;
  15.  
  16.     //cout<< reinterpret_cast<int>(signal); // 16163569 BASE 16
  17.  
  18.     void* void_pointer = NULL;  
  19.     int* int_pointer = NULL;
  20.     int n = 1500;
  21.  
  22.     void_pointer = int_pointer;
  23.     int_pointer = &n;
  24.  
  25.     n = 11111;
  26.  
  27.     cout<<*int_pointer;
  28.    
  29.  
  30.     //Referencja
  31.  
  32.     //int &r = liczba;
  33.     //cout<<r;
  34.  
  35.     system("pause");
  36. }
Add Comment
Please, Sign In to add comment