Two Plus Two Older Archives  

Go Back   Two Plus Two Older Archives > General Gambling > Computer Technical Help
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Display Modes
  #11  
Old 11-16-2005, 02:44 AM
mscags mscags is offline
Senior Member
 
Join Date: Mar 2005
Location: Between Two Hot Twins
Posts: 713
Default Re: C++ Lottery Program

This looks great. Thanks for all of your help. I really apprecaite it [img]/images/graemlins/smile.gif[/img] Yes I think I do need to learn the language a little better.
Reply With Quote
  #12  
Old 11-16-2005, 12:45 PM
StevieG StevieG is offline
Senior Member
 
Join Date: Jan 2003
Location: Baltimore, MD, USA
Posts: 157
Default Re: C++ Lottery Program

[ QUOTE ]
ok, i got it to work, u should check the logic to make sure it works.

[/ QUOTE ]

Yeah, I think you got it to compile, but there are still some serious flaws.

* As implemented, it is possible for the same number to come up more than once in the drawing.

* There is no input checking to verify that these are even integers, let alone that there are no repeats in the picks.

* There is no sorting of either the drawing or the picks, and so the comparison could fail to find a winning selection.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 08:15 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.