Thread: Lottery Program
View Single Post
Old Jul 10th, 2007, 12:47 AM   #12
King
Professional Programmer
 
King's Avatar
 
Join Date: Jan 2006
Location: Ontario, Canada
Posts: 380
Rep Power: 3 King is on a distinguished road
In the GetNumbers function change the if statement to:
if ( num == 0 )
     break;
The code before only had a single '=' where a double '=' was needed (Ben probably didn't even compile it so was an easy thing to miss). That will fix the error. From here you should add some error handling for practice.
__________________
I am Addicted to Linux!
King is offline   Reply With Quote