Thread: Need some help or advice in C++ program

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2001
    Posts
    4,912
    Are you referring to the program giving you 10 random numbers at first, but then giving you those same numbers each time you run the program?

  2. #2
    Code Goddess Prelude's Avatar
    Join Date
    Sep 2001
    Posts
    9,897
    >then giving you those same numbers each time you run the program?
    If this is the case then srand isn't doing it's job on the OP's implementation. Which is entirely possible since using time directly to seed srand is non-portable. However, clarification would be a good idea before we start throwing out ideas.
    My best code is written with the delete key.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. BOOKKEEPING PROGRAM, need help!
    By yabud in forum C Programming
    Replies: 3
    Last Post: 11-16-2006, 11:17 PM
  2. Can someome help me with a program please?
    By WinterInChicago in forum C++ Programming
    Replies: 3
    Last Post: 09-21-2006, 10:58 PM
  3. Menu program advice
    By Ne0 in forum C Programming
    Replies: 4
    Last Post: 12-04-2004, 04:27 AM
  4. I need some help with my program please.
    By agentxx04 in forum C Programming
    Replies: 9
    Last Post: 09-26-2004, 07:51 AM
  5. My program, anyhelp
    By @licomb in forum C Programming
    Replies: 14
    Last Post: 08-14-2001, 10:04 PM