I commented out the whole function it did work without any problems. Then I commented out everything in the function everything except the string definitions and I got the error message again. So it is difinitivly there.
Yep, when I went into my kitchen to eat something it came up to my mind: A string and a variable aren't the same >_<.
So thereby I can't store such numbers in it - Just wrote it down because I was on my string rampage ;)
The 0 is being treated as a pointer unfortunately, that is why it compiles and why it crashes during
runtime.
Any other value would have been treated as an integer and it would not have compiled, because string has no function overload for the = operator that takes an integer (and it has no implicit constructor that could be used to construct a string from an integer).