V
Vincent SHAO
Well, i have a question here. i want to write 50000 into a specific
memory unit (like # 4321). So i wrote these:
int number=5000;
memcpy((char *)50000,(char *)&number,sizeof(char));
char * p=(char *)50000;
cout<<"This is p"<<endl;
cout<<p<<endl;
But it doesn't work, how can i access to a specific memory unit.
Thank you.
memory unit (like # 4321). So i wrote these:
int number=5000;
memcpy((char *)50000,(char *)&number,sizeof(char));
char * p=(char *)50000;
cout<<"This is p"<<endl;
cout<<p<<endl;
But it doesn't work, how can i access to a specific memory unit.
Thank you.