Search:

Type: Posts; User: biz

Search: Search took 0.01 seconds.

  1. Replies
    23
    Views
    3,890

    oops...yep...you are right...damn typos :)...

    oops...yep...you are right...damn typos :) *edited to fix*

    srand() seeds the random # generator with a value. If you do not srand() before you generate numbers then the same 'random' numbers might...
  2. Replies
    23
    Views
    3,890

    #include #include ... ...

    #include <time.h>
    #include <stdlib.h>

    ...

    srand(time(NULL));
    x=(rand()%(N+1)); // Generate random # between 0 and N
    x=(rand()%(end-start+1)+start); // Generate random # between start...
  3. Replies
    10
    Views
    2,362

    No update? The link doesn't work anymore...

    No update? The link doesn't work anymore unfortunately, and I would like to see what you have done.
  4. Thread: I want my conio.h!

    by biz
    Replies
    3
    Views
    2,197

    look up ncurses...it will do all you need and...

    look up ncurses...it will do all you need and then some.
  5. Replies
    23
    Views
    4,572

    I wouldn't call my life "troubled". Have a life,...

    I wouldn't call my life "troubled". Have a life, have a gf, program for a living and browse this board while I work :). I love my life.

    Take your pitiful attempt at making yourself feel better...
  6. Thread: array

    by biz
    Replies
    13
    Views
    1,317

    That would take up 100 bytes of memory. For...

    That would take up 100 bytes of memory. For information on dynamic memory, lookup the operators new amd delete.
  7. Replies
    6
    Views
    1,196

    This is actually a tad incorrect. array[50]...

    This is actually a tad incorrect. array[50] actually defines a pointer which points to the first item in an array. Example:
    char blah[10]="hello";
    cout << blah << endl << (blah+1) << endl;

    This...
  8. Thread: My first game!!!!

    by biz
    Replies
    174
    Views
    21,324

    zip file has a bad CRC...you need to re-upload.

    zip file has a bad CRC...you need to re-upload.
  9. Thread: My first game!!!!

    by biz
    Replies
    174
    Views
    21,324

    The first time you buy a weapon, all is fine....

    The first time you buy a weapon, all is fine.
    The second time you buy a weapon, this error/crash occurs.

    Hope that helps you find the bug and squash it...I'd help, but you didn't include the...
  10. Replies
    8
    Views
    2,393

    no problem...hehe yea...I am the typo master ;)

    no problem...hehe yea...I am the typo master ;)
  11. Replies
    8
    Views
    2,393

    Re: Re: left hand opperand??

    Try this:



    #include <iostream.h>
    #include <string.h>

    struct weapon
    {
    char name[15];
  12. Replies
    8
    Views
    2,393

    There are a few ways to hold different sized...

    There are a few ways to hold different sized arrays of strings in memory. Two off the top of my head:
    a1) If I recall correctly, many compilers as of late include some sort of string class which...
  13. Replies
    8
    Views
    2,393

    Well it compiles fine on my system after I...

    Well it compiles fine on my system after I include iostream.h

    *shrug*
  14. Replies
    8
    Views
    2,393

    Re: left hand opperand??

    You are missing iostream[.h]



    #include <iostream.h>

    struct weapon
    {
    char name[15];
    char Wclass[6];
Results 1 to 14 of 14