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...
Type: Posts; User: oscar
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...
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...
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.............
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...
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...
Try the following code:
#include <stdio.h>
#include <stdlib.h>
int numMinutes = 103; /* ie 1 hour 43 minutes */
int main ( void )
{