Error

Sep 16, 2009 at 11:09pm
closed account (oz80RXSz)
When I build it
it says;
Build: 1 succeeded, 0 failed, 0 up-to-date, 0 skipped

when i start it without debugging it gives me an error

Debug Error!
Run-time Check failure#3-The variable 'x'is being used without being initialized.

float x; doesn't that initializes x
Sep 16, 2009 at 11:30pm
No. float x = 0.0f;

You were just declaring it and then using it.
Last edited on Sep 16, 2009 at 11:31pm
Sep 17, 2009 at 11:48am
For built-in types -int float etc- the default constructor in most cases isn't called so you need to specify it.
Sep 18, 2009 at 5:20am
closed account (oz80RXSz)
ok thank you both
Topic archived. No new replies allowed.