Search:

Type: Posts; User: GeorgeIO

Page 1 of 2 1 2

Search: Search took 0.01 seconds.

  1. main.c: #include #include...

    main.c:



    #include <stdio.h>
    #include <stdlib.h>
    #include <conio.h>
    #include <string.h>
    #include <stdbool.h>
    #include "librarian.h"
  2. Problem adding data to a linked list, unsure as why

    Hi guys, so a while back I posted about a Library System I was implementing. I decided to revisit the project, but instead of using files to store all of the data I wanted to implement a linked list...
  3. So, here's an update of my program so far. I'll...

    So, here's an update of my program so far. I'll post the whole code here, with each .c and .h files in seperate blocks.

    main.c:


    //Header files
    #include <stdio.h>
    #include <stdlib.h>...
  4. I tried deleting the calls to main() but I ran...

    I tried deleting the calls to main() but I ran into compiler errors. How would I go about implementing a mymain(argc, argv) function? Here's an update on my program (I hope linking to github repo's...
  5. No, obviously not. It turns out the errors were...

    No, obviously not. It turns out the errors were due to typo's. I'd missed out a couple of underscores somehow. I've been predominantly programming in Java as of late so I was using camelcase....
  6. Why am I getitng these errors? (Library information system)

    Hi there. I'm currently working on a project to design a library information system.

    Hi there. I'm in the process of trying to make a library information system in C. The library has to store...
  7. Jack, that was a really great way of putting it....

    Jack, that was a really great way of putting it. Easy to understand for coding newbies like myself :)
  8. Replies
    62
    Views
    12,550

    So, that went sideways very quickly...

    So, that went sideways very quickly...
  9. Replies
    62
    Views
    12,550

    whiteflags, your posts have been very helpful. I...

    whiteflags, your posts have been very helpful. I really appreciate it!
  10. Replies
    62
    Views
    12,550

    I had turned on -Wextra too, but does it stand...

    I had turned on -Wextra too, but does it stand that by using -W there's no need to use -Wall?

    And user, the number in the bang command was part of the requirements of this particular assignment....
  11. Replies
    62
    Views
    12,550

    Well, ideally the show command should actually...

    Well, ideally the show command should actually print the names under the stars on the actual frame buffer, ie similar to the draw command but including the names of the pair you want to show. But I...
  12. Replies
    62
    Views
    12,550

    userxbw, the bang command needs to be followed by...

    userxbw, the bang command needs to be followed by a number (the size of the universe). So it accepts 'bang 20', 'bang 5', or 'bang 100' etc.

    Can people try compiling this code, as I'm not...
  13. Replies
    62
    Views
    12,550

    Which global variables are you referring to? ...

    Which global variables are you referring to?

    And userxbw, I thought it was pretty self explanatory since I added a list of the commands and what they do. The pair command should display the...
  14. Replies
    62
    Views
    12,550

    Here's the program with a help menu. And pairs...

    Here's the program with a help menu. And pairs still doesn't seem to work with a prototype included, dammit...


    /*Define libraries to be included*/
    #include <stdio.h>
    #include <stdlib.h>...
  15. Replies
    62
    Views
    12,550

    Sorry, I'll add a little help function which...

    Sorry, I'll add a little help function which displays the commands that can be used, but that doesn't relate to my question?
  16. Replies
    62
    Views
    12,550

    Why oh why strcpy?

    Hi guys, so I've created a simple program where the user can 'simulate' the big bang. Fortunately, it's not supposed to go anywhere near to a real sim of the big bang. It simply fills a flat...
  17. I appreciate all the help and advice, I really...

    I appreciate all the help and advice, I really do! Also the p command needs to be followed by the patient id number, which I see you missed off. Ideally I would have an error message return every...
  18. Think I got it working. Give it a go: void...

    Think I got it working. Give it a go:


    void enqueue(int data) { if (check_if(data) == 1) {
    puts("You have checked in already! To view position in queue press 'p #', where # represents...
  19. Also, when I try and run the code on Wandbox it...

    Also, when I try and run the code on Wandbox it goes into an infinite loop. I've double checked the settings are they all seem to be correct.
  20. :wink: Thank you friend. Tell you what, I'll...

    :wink: Thank you friend. Tell you what, I'll repost the updated code below so you have more of an idea of what's changed:


    /*********************************************************************...
  21. Yes, it is an update. My bad for not stating...

    Yes, it is an update. My bad for not stating that. But your idea is perhaps a better one.

    Also, I'm struggling as to why the program isn't telling a patient to go straight to a room when a doctor...
  22. There's still a few errors I need to file out....

    There's still a few errors I need to file out. E.g. case 'o' needs to be changed to:


    case 'o': loading();
    system("clear");
    scanf("%d", & patient_id);
    ...
  23. My tutor wanted the input to be entered in one...

    My tutor wanted the input to be entered in one line. For example, a patient whose id number is 764 must type in this command on arrival:>>> i 764. Not sure if that's more prone to errors, but that's...
  24. In answer to a user not knowing they need to...

    In answer to a user not knowing they need to input, doesn't this suffice?



    puts("\nLeeds Student Medical Practice");
    puts("-------------");
    puts("Enter a...
  25. I'm having to use an online compiler right now as...

    I'm having to use an online compiler right now as the PC I'm on is a library one without a compiler. So thanks for that, I wasn't aware. I'll edit my OP to void the return of those functions, since...
Results 1 to 25 of 36
Page 1 of 2 1 2