I'm a little rusty this isn't making sense to me. I've created an array of 5 values, put values in them, and I'm trying to sum them. I used a switch statement because I'm going to be doing other things with them. It compiles fine but it just stops working after I click the button and says it has exited with code 1073740791. Any help with be greatly appreciated.
Wait a minute... this shouldn't even compile, unless this is C# or some non-standard C++ variant. floats don't have a ToString() member function because they aren't class-like types... :/
I'd suggest creating a temporary stringstream object with the contents of tmp, and using >> to read that into total->Text, which does the type cast automatically.
Edit:
oh yes, code 1073740791 (0xc0000409) is an 'unknown software exception'. This can sometimes be caused by a buffer overrun but I would not like to guess at this point. Maybe post more code and give us more info.
I'm not exactly sure what to call it. I made it in visual studio '10 and it's a windows forms application under CLR. Anyway here's the rest of the code. I tried commenting out the go function and doing it inside the button click but I get the same result.
#pragma endregion