Hi everyone,

I'm new at C++ and I'm having problems with saving characters to a string pointer at different locations. Here with this example code, I changed the address of the pointer to point to the 5th location that points to a blank, and I want to be able to save the text "5" there. Can anyone help me?


TCHAR *stringadded = TEXT("1234");
TCHAR *a;


int si=0; //string i counter

stringadded++;
si++;
stringadded++;
si++;
stringadded++;
si++;
stringadded++;
si++;

//stringadded=TEXT("5");

a = stringadded - si;

MessageBox(NULL, a, TEXT("HELLO2"), MB_OKCANCEL);
return 0;