Search:

Type: Posts; User: kirby1024

Search: Search took 0.01 seconds.

  1. Replies
    3
    Views
    905

    OK, I managed to solve the problem. I fixed a few...

    OK, I managed to solve the problem. I fixed a few bits and pieces, and finally caved in and used a union.

    So, it looks like the program is working OK now...
  2. Replies
    3
    Views
    905

    Hmm. Binary files shouldn't be coming near it....

    Hmm. Binary files shouldn't be coming near it. It's supposed to take a Text file full of text, turn it into a Text file full of Hexadecimal numbers, and with -d, do the reverse. Sorry if that wasn't...
  3. Replies
    3
    Views
    905

    Really? Bugger. It's with the -d switch. I'll...

    Really? Bugger. It's with the -d switch.

    I'll try changing the structure then, to get the decs done first.
  4. Replies
    3
    Views
    905

    Something screwy going on here...

    OK, Here is a program that was working perfectly fine a few days ago, but has suddenly decided to begin depositing 56MB files on my computer (at least, that's how far it gets before I shut it down)....
  5. Replies
    5
    Views
    5,098

    Thanks - It looks like that's solved the problem....

    Thanks - It looks like that's solved the problem.

    Gracias!
  6. Replies
    5
    Views
    5,098

    OK, yet another problem found. I decided to see...

    OK, yet another problem found. I decided to see if it was hashing properly, so I inserted a call to list(). I found out that for some reason, any words 8 characters or more are abbreviated to 8...
  7. Replies
    5
    Views
    5,098

    Thanks for the debugs, but the problem is still...

    Thanks for the debugs, but the problem is still persisting. 23rd loop through, the test printf gets to #, and windows informs me that the program is attempting to write to NULL.

    Which, I guess,...
  8. Replies
    5
    Views
    5,098

    Because as the hyperlink probably indicates, this...

    Because as the hyperlink probably indicates, this is a university course, and uses C. Also, I don't know any Perl. I'm only first year Uni student!
  9. Replies
    5
    Views
    5,098

    Problem with Hash Table Linear Probing

    The problem here is that for some reason, about 23rd time through the main loop in readList(), it decides to read to NULL, and I have no idea why it is happening.

    The code is attached (as well as...
  10. Replies
    8
    Views
    1,771

    Ah, cool. Thanks for that explanation.

    Ah, cool. Thanks for that explanation.
  11. Replies
    8
    Views
    1,771

    Hmm. Well, I think I may have found the problem....

    Hmm. Well, I think I may have found the problem. For some reason, using an simple int for hex instead of an unsigned short int fixes the problem right up. Can't for the life of me figure out why...
  12. Replies
    8
    Views
    1,771

    Hmm, how odd. Try reading this into the hexifier,...

    Hmm, how odd. Try reading this into the hexifier, I've checked it with the original version, so the hex codes I know are correct here:-

    49 20 74 72 69 65 64 20 74 6F 20 77 61 72 6E 20 79 6F 75 2C...
  13. Replies
    2
    Views
    2,098

    Actually, There's no bother. Looking at the code...

    Actually, There's no bother. Looking at the code while pasting it made me realise what I was doing wrong - user.correct, user.wrong, user.correctSession and user.wrong session all equal 0.

    And we...
  14. Replies
    2
    Views
    2,098

    Bad printf()!

    This is the code that I'm struggling with:



    typedef struct
    {
    char surname[20];
    char name[15];
    int addLevel;
    int subLevel;
  15. Replies
    4
    Views
    1,150

    :blink: Right. That just seemed so obvious...

    :blink:

    Right. That just seemed so obvious...
  16. Replies
    4
    Views
    1,150

    But it's not going to be a single digit all the...

    But it's not going to be a single digit all the time (excuse me if I show my newbieness, but I thought that %c would mean only 1 character period, including numbers). Doing it that way, I'd have...
  17. Replies
    4
    Views
    1,150

    Taking chars into account.

    OK, not-so-hypothetical here:

    Say I had a input that, the majority of the time, expected an integer value. But, there is a single case where a char would be acceptable (ie instead of entering an...
  18. Replies
    2
    Views
    1,878

    OK, well thanks anyway. Ah well. At least I...

    OK, well thanks anyway.

    Ah well. At least I won't make the same mistake again...
  19. Replies
    2
    Views
    1,878

    Assigning Values in Structs

    OK, I've managed to iron out all the bugs in my code, except for in the following code:



    typedef struct
    {
    char surname[20];
    char name[15];
    int addLevel = 1;
    int subLevel = 1;
Results 1 to 19 of 19