Click here to Skip to main content
16,011,428 members

Comments by Apfelmuuus (Top 32 by date)

Apfelmuuus 7-Dec-12 8:13am View    
I don't get what this code is about but if you just want to check if two floating values are different in n decimal places transform the value to an int like : <br>
round(10^n*d) != round(10^n*f) <br> or what do you want to do?
<br> Regards Martin
Apfelmuuus 18-Oct-12 12:03pm View    
Yes, you do not need a "bet" class you can handle it directly in the "player" class. I just thought you wanted a bet class but it isn't necessary.(without a "bet" class you are saving some resources) So if it is ok for whom your writing this programm for, just handle the "Money" and the number of the winning dog as properties of the player class. If your are coding for your own just try what you like best.
Apfelmuuus 18-Oct-12 12:02pm View    
Deleted
Yes, you do not need a "bet" class you can handle it directly in the "player" class. I just thought you wanted a bet class but it isn't necessary.(without a "bet" class you are saving some resources) So if it is ok for whom your writing this programm for, just handle the "Money" and the number of the winning dog as properties of the player class. If your are coding for your own just try what you like best.
Apfelmuuus 13-Jul-11 5:37am View    
Deleted
Yes you are right OP would do this but not in the sample code.
Apfelmuuus 11-Jul-11 8:35am View    
It wasnt his answer! It was his problem code you have deleted! Can you undo this?