|
-
January 2nd, 2006, 12:34 PM
#1
Embedded Visual Newbie Help
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;
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|