On Apr 14, 8:44 pm, Jack Klein <jackkl...@spamcop.net> wrote:
> On 14 Apr 2007 12:27:01 -0700, "Miktor" <bigbadmick2...@hotmail.com>
> wrote in comp.lang.c++:
>
> > I'm trying to write a lottery number generator for the uk national
> > lottery.
>
> > Any clues where I'm going wrong?
>
> [snip code]
>
> I don't know. You did one thing right, but one thing wrong.
>
> The good thing that you did was to post your actual code. The thing
> you did wrong was not to tell us what your problem with it is.
>
> Do you get compiler or linker errors when you try to compile it? Does
> it crash when you run it? Does it build and run OK, put produce what
> you think are wrong results?
>
> Post your code again but add some more information. Copy any
> compiler, linker, or run time error messages and paste them into the
> message. Or describe the incorrect output of the program and what you
> think the correct output should be.
>
> Help us to help you.
>
> --
> Jack Klein
> Home:http://JK-Technology.Com
> FAQs for
> comp.lang.chttp://c-faq.com/
> comp.lang.c++http://www.parashift.com/c++-faq-lite/
> alt.comp.lang.learn.c-c++http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
Thanks for the advice Jack.
When I compile and run the program in dev c++, it compiles and runs
ok, but it stops at line 8, number 6. I think it seems to be stuck in
an infinite loop or something.
If you cut and paste the above source code into dev c++, you'll see
what I mean.
Thanks again for the advice! I'm just trying to learn c++ from scratch
at the minute, with my entire previous programming experience
consisting of writing BASIC programs on my ZX Spectrum +2A many, many
years ago. Needless to say, it's an interesting learning curve!