This place seems like they don't want the help you solve your issues you are facing, but telling you are o go f yourself.
Printable View
This place seems like they don't want the help you solve your issues you are facing, but telling you are o go f yourself.
This forum is for Visual c++ - and this code looks more like c#.
[Moderator please would you move to appropriate forum - thanks]
This is managed c++ - so the correct forum is 'managed c++ and c++/cli'.Code:private: System::Windows::Forms::Button^ betButton;
At least the Form1.h file has nothing to do with the Visual C++. And it is not a native C++ either!
Well, what do you mean by "help" in this context? Would you like that we debug your code for you? :confused:
Note that you will never be able develop any software unless you will debug it!
Then what is your specific question? You didn't post one. So the only thing to assume is that you want us to debug the program. You didn't state "I'm passing a variable x and it changes for some reason to a value I didn't expect" or "the function returns a bad address" or "whenever I copy an object, the original object gets corrupted", or anything like that. You just listed what was wrong with the program in general, as if you're not a programmer, but an end-user.
As to debugging -- debugging doesn't mean "change the code and hope it works". It means you take the debugger, and see where the program goes against what you expected. Then you take note of what the debugging session showed you to aid in fixing the program (or you scrap your original plan and think up another design if the design you initially chosen won't work). Again, you wrote the program, so there is absolutely no excuse why you can't debug the very program that you wrote.
For example:
So place a breakpoint at the point in the code where the "Play Again" button click logic is invoked. Step through it using the debugger. Where does the logic flow go in another direction where you didn't expect? Is there an if() statement, function call, whatever that does or does not get executed when you expected it to not execute / execute? Etc...etc...Quote:
If I click "Play Again" and try to play again it doesn't reset the last game information.
Regards,
Paul McKenzie
Now I remember why I hated this place.
Because you are expecting us to do the work of debugging your program for you rather than you putting in the work to find the problem. People who reply here to posts have other jobs. They are not going to start looking through pages of code or start debugging some one else's code of the size you posted.
Programming is a lot more than just writing some code. There is also design and debugging.
Put in the effort with the debugger, find where the code deviates from that expected from your design and then if you don't understand why something is/is not happening then post a specifc question to the right forum.
Nope, its because you are telling me where this should go instead of helping me aka point me in the right direction and if you see something fishy by just looking at the code. If you all have jobs and are too busy, why the heck are you on a forum? Clearly I'm just going to go somewhere else and get help, since no one wants to do so here.
I'M OUT!
Not directly related to your problem, but looking through the code you have statements like this
This can be replaced byCode:if (points < n)
return true;
else
return false;
and likewise for other similar statements.Code:return points < n;
If your code had been standard c++ instead of managed c++ then I would have loaded it up into my MSVC and had a quick look. As it's mananged c++, you posted to the wrong forum as I pointed out in a previous post. People with different skills look at different forums. So if you want specific replies then you need to post to the correct forum where people with those skills view the posts.
You was pointed in the right direction. And it happened at least twice:
1. In this thread (about two years ago)<
2. In the current thread.
Many people did want to help. But you do not accept it!
Pity!
But it is up to you...
PS: nevertheless, I am now moving this thread to the Managed C++ Forum