Share Pastebin
Guest
Public paste!

aVoN

By: a guest | Mar 20th, 2010 | Syntax: C++ | Size: 0.19 KB | Hits: 68 | Expires: Never
This paste has a previous version, view the difference. Copy text to clipboard
  1. void ChangeByte(BYTE* buffer,int pos, unsigned char change){
  2.         buffer[pos] = change;
  3.         cout << buffer << endl;
  4. }
  5.  
  6. int main(){
  7.         BYTE lol[] = "hello";
  8.         ChangeByte(lol,2,'a');
  9.         return 0;
  10. }