Search:

Type: Posts; User: Samzor

Search: Search took 0.01 seconds.

  1. Thread: Atoi()

    by Samzor
    Replies
    4
    Views
    2,594

    I meant the hexademical 0x30 to 0x39, sorry...

    I meant the hexademical 0x30 to 0x39, sorry (subtract 0x30 or 48).

    Also your powers are incorrect, as you get further down the string, the exponent should decrease (the number to the farmost right...
  2. Replies
    6
    Views
    3,927

    Just a note: srand() and rand() can only generate...

    Just a note: srand() and rand() can only generate single streams of random numbers.

    This means when you create another instance of that random number generator class, it's going to mess up the...
  3. Thread: Atoi()

    by Samzor
    Replies
    4
    Views
    2,594

    Your problem is here: (int)str[j]

    Your problem is here:
    (int)str[j] <- you do not simply typecast a character to an integer, as you will just get the ascii code.

    I don't know if I'm allowed to post outside links but: Ascii Table...
  4. Replies
    12
    Views
    1,378

    I believe this is because when including header...

    I believe this is because when including header files, the #include statement simply gets replaced with the contents of the header files, meaning including definitions in a header file will get...
Results 1 to 4 of 4