Search:

Type: Posts; User: CommonTater

Search: Search took 0.06 seconds.

  1. Replies
    16
    Views
    20,553

    I set you on the right track... showed you an...

    I set you on the right track... showed you an example of how to do this...
    Now it's up to you to study and learn, then fix your own code.

    I am not going to do your homework for you.
  2. Replies
    16
    Views
    20,553

    But then you declare a new copy of N inside your...

    But then you declare a new copy of N inside your random number function. This internal variable masks (hides) the one in main and is used in an uninitialized state in your function. You should be...
  3. Replies
    16
    Views
    20,553

    First... indent your code properly and leave...

    First... indent your code properly and leave blank lines between sections. Done properly you will have a visual indication of how your code works.

    So, what's the problem with it?
    What error...
Results 1 to 3 of 3