Search:

Type: Posts; User: oscar

Search: Search took 0.00 seconds.

  1. Thread: bitwise shifts

    by oscar
    Replies
    28
    Views
    4,951

    for a start, if the number is 'unsigned' then the...

    for a start, if the number is 'unsigned' then the leftmost bit is not used to determine the sign of the integer, as it is unsigned.

    another thing to be cautious of, is that the size of an integer...
  2. Replies
    1
    Views
    5,509

    You would need to use a linked list for each...

    You would need to use a linked list for each node. The linked lists are used to store the edges that connect from the node in question to another node.

    The simplest way to store the nodes would be...
  3. Replies
    2
    Views
    10,138

    Compare the following code to your original........

    Compare the following code to your original.....
    The main problem was with your 'scanf' calls, you have to pass to 'scanf' the address of the variable where you want it to store the result.............
  4. Replies
    2
    Views
    3,775

    Have a look at the following code and compare it...

    Have a look at the following code and compare it to your original code.
    In future you may want to actually explain the problem. I've made a few changes.........




    #include <stdio.h>
    #include...
  5. Replies
    2
    Views
    2,399

    The reason you are getting the 0xFF byte is that...

    The reason you are getting the 0xFF byte is that an EOF condition may occur after an attempt to read a byte from the file.
    You need to also add a check after the read to ensure that it actually read...
  6. Replies
    3
    Views
    33,182

    Try the following code: #include ...

    Try the following code:


    #include <stdio.h>
    #include <stdlib.h>

    int numMinutes = 103; /* ie 1 hour 43 minutes */

    int main ( void )
    {
Results 1 to 6 of 6