Search:

Type: Posts; User: Gir

Search: Search took 0.00 seconds.

  1. Replies
    12
    Views
    2,940

    Okay working. (btw - the 100% was a typo, I had...

    Okay working. (btw - the 100% was a typo, I had it right in the code).

    I used :

    srand(time(NULL));

    Thanks,

    Gir.
  2. Replies
    12
    Views
    2,940

    int randvar=rand()%100; //not working

    int randvar=rand()%100; //not working

    Hi, If i use the line above it generates the same number (7) each time on my system (osx10.3). Doe anyone know why this happens? Something wrong with the code...
  3. Replies
    3
    Views
    1,080

    That looks good. Thanks! I'm going to have a play...

    That looks good. Thanks! I'm going to have a play with that.

    Gir.
  4. Replies
    3
    Views
    1,080

    Let's Do Something Useful

    Hi,

    I'm familiar with shell scripting and have just gotten interested in c++ for programming. I've been following sams c++ which is going well and I'm learning a fair bit.

    The problem however...
Results 1 to 4 of 4