I want to start writing mods for online flash games, so I need to work out memory things.
How would I go about changing the value of 6 to 25? Memset?
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
#include <iostream>
usingnamespace std;
int main ()
{
int one = 6;
intnew;
cout << "The address of variable one is " << &one << endl;
cout << "The value of variable one is " << one << endl;
//memset stuff that changes value of one to 25 through its address.
//cout << "And now it is " << new;
}