Possible Duplicate:
In C++, Why can't I write to a string literal while I can write to a string object?
I'm having my first experience with wchar_t strings and I'm having a lot of trouble. Each time I try to access a character in an wchar_t* the program crashes with segmentation fault. How should I do if I want to replace one character in the string with another? But when deleting a character from the end of the string?
wchar_t * my_string[] = L"Hello";
my_string[0] = L'Y'; // Should be "Yello". Instead, gives segmentation fault
[edit] Doesn't matter, I've just made a fool out of myself. I'll check elsewhere on the internet. It's my fault, I shouldn't be bothering you with such silly questions...