重複の可能性:
特定の固定アドレスへのポインター
int a, hex = 0x573285;
int * pA; // Pointer?
*pa = &a; // &a = the hexadecimal-memory location and *pa is now going to point to that place.
だから私は考えました:
たとえば、次のようなものを書くことが可能だとしましょう。
(*hex) = 5; or whatever the hexadecimal number is
メモリの値を変更するには?
そして、私がプログラムを持っていた場合(私はそれを知りません)、それは私のゲームが使用するすべてのメモリ位置を私に示しました。プログラムの値を変更してからゲームに戻った場合、それはそこでも変更されますか?(ゲームが実行されている場合)。
とは(*this) the same as (this*)
?
編集:これは動作します
int a = 5, b=0x28ff1c;
int* c = &a;
cout << *(c);
だがしかし:
int a = 5;
int * b=0x28ff1c;
int * c = &a;
cout << *(b);
または:
int a = 5, b=0x28ff1c;
int * c = &a;
cout << *(b);
私がやろうとしていることがわかりますか?