main.c:
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <stdbool.h>
#include "librarian.h"
Type: Posts; User: GeorgeIO
main.c:
#include <stdio.h>
#include <stdlib.h>
#include <conio.h>
#include <string.h>
#include <stdbool.h>
#include "librarian.h"
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...
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>...
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...
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....
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...
Jack, that was a really great way of putting it. Easy to understand for coding newbies like myself :)
So, that went sideways very quickly...
whiteflags, your posts have been very helpful. I really appreciate it!
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....
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...
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...
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...
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>...
Sorry, I'll add a little help function which displays the commands that can be used, but that doesn't relate to my question?
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...
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...
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...
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.
: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:
/*********************************************************************...
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...
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);
...
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...
In answer to a user not knowing they need to input, doesn't this suffice?
puts("\nLeeds Student Medical Practice");
puts("-------------");
puts("Enter a...
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...