View Single Post
Join Date: Nov 2008
Posts: 8
Reputation: techgenie is an unknown quantity at this point 
Solved Threads: 0
techgenie techgenie is offline Offline
Newbie Poster

Re: Generate 6 Random Numbers

 
0
  #8
Nov 16th, 2008
I have been working on this program for quite some time and I have gotten it to compile and execute but I am getting a Debug error - Runtime Check Failure #2 Stack around the variable 'fllottery_numbers was corrupted.
the only function that has 'fllottery_numbers is the function below.
Can anyone help with resolving this issue.
Thanks for your time and patience.

  1. void Lottery::displayLottery()
  2. {
  3. int fllottery_numbers[6];
  4. flLotteryDraw(fllottery_numbers);
  5.  
  6. for (int j = 0; j < 6; j++)
  7. {
  8. cout << fllottery_numbers[j] << " " << endl;
  9. }
  10. }
Reply With Quote