I get an error like this : Unhandled exception at 0x004115ae in LesPointeur2.exe: 0xC0000005: Access violation writing location 0x00417a28.
I see that i cannot overwrite the "Hello World" like it is read only. "Hello World"
is like a constant but I don't want to. I never declare char const *MyString so
why I cannot directly change a char with my pointer CharPtr ?
I just want to know how I can do it with pointers.
No array or string solution please
ThanxCode:char *MyString= "Hello World"; char *CharPtr; CharPtr= MyString; *CharPtr='m'; CharPtr++; *CharPtr='o'; cout<<MyString;
Chris3000