Search:

Type: Posts; User: husoski

Search: Search took 0.01 seconds.

  1. Replies
    4
    Views
    375

    "ASCII numbers" are just numbers. The only time...

    "ASCII numbers" are just numbers. The only time the "ASCII" part matters is when you're interpreting that number as a character.

    In C, a char or unsigned char value is just a number. What...
  2. You forgot the argument list on that function...

    You forgot the argument list on that function call. Change line 157 to:


    if (!checkBoardFull(board))

    That should get you farther along in your testing.

    PS: The reason for...
  3. Replies
    6
    Views
    583

    You might want to fix your question. Even after...

    You might want to fix your question. Even after fixing the declaration of main (must be "int main()" in standard C), the variable j is not declared; and you have a variable t that's not used...
  4. Replies
    16
    Views
    730

    Then the only thing left is to multiply or divide...

    Then the only thing left is to multiply or divide by 2 until you get a number 0.5 < |x| <= 1.0, starting with the bias as the count value and adding or subtracting 1 from that count on each...
  5. Replies
    8
    Views
    807

    Not quite. The statement in C/C++ is also called...

    Not quite. The statement in C/C++ is also called "goto", but in lower case.


    if (x < 5) goto SKIP;
    std::cout << "Didn't skip." << std::endl;
    SKIP: ; // label on an empty statement

    ...
  6. Replies
    15
    Views
    995

    Thanks and yes...I forgot to mention that...

    Thanks and yes...I forgot to mention that <float.h> and <stdlib.h> are needed.

    It's not bad for pure-standard C. You can expand on the conditional compilation ideas to include a wider range of...
  7. Replies
    15
    Views
    995

    If you're worried about platform-specific...

    If you're worried about platform-specific problems, one thing to avoid is rand(). Microsoft's implementation is seriously deficient, and their run-time library is used by the various MinGW ports of...
  8. Replies
    7
    Views
    932

    It's already been "pointed" out that the two...

    It's already been "pointed" out that the two examples are not equivalent. But you can initialize a pointer variable using a typecast integer value.

    That second example only makes sense if the...
Results 1 to 8 of 9