does the program crash every time, or just some times - this should crash every time.
Pardon me - this should not even compile!
I see you use 'ui' variable, yet you access GUI elements (which are not declered in the scope of your class) directly.
Look, I don't like answering like that, but you are really an extreme case.
Stop posting such questions.
You don't know C++, which is nothing to be ashamed of, but you can't expect us to waist our time to see the trivial mistakes you are making, and then teach you why they are a mistake.
Lern C++ first, then post your questions here.
This forum is NOT a C++ learning forum, there are many others on the net that do that.
Bookmarks