Forum: C Apr 10th, 2008 |
| Replies: 7 Views: 788 It's kind of long in my view. That's why I didn't post it up in the first place but here it is:
/* South Coast Serenity Inn (SSI) Automated Reservation and Booking System */
/*
FILE... |
Forum: C Apr 10th, 2008 |
| Replies: 7 Views: 788 Ok, check out my source code file too. |
Forum: C Apr 10th, 2008 |
| Replies: 7 Views: 788 I just finished up the final touches on my C Project (at least I hope that's the last of them). Anyway, it's due Friday (10% of my overall grade) and I'd like to have some quick feedback... |
Forum: C Apr 6th, 2008 |
| Replies: 3 Views: 1,083 No worries, I solved the problem. |
Forum: C Apr 6th, 2008 |
| Replies: 3 Views: 1,083 I recoded my insertion sort function. With almost a full day between my first post it now works but it doesn't work perfectly. The issue is that the sorting function will partially sort the guest... |
Forum: C Apr 5th, 2008 |
| Replies: 3 Views: 1,083 I'm trying to create a function that will sort the contents of a file in alphabetical order. The problem I'm having is that the code doesn't seem to do anything. The only examples I could find have... |
Forum: C Apr 5th, 2008 |
| Replies: 4 Views: 517 After reading that website you posted I realized that by freading it twice in the loop I'd would always be missing one. The problem is now solved. Thanks. |
Forum: C Apr 5th, 2008 |
| Replies: 4 Views: 517 The code you suggested doesn't work and has bugs similar to my first. With yours, some of rows that are in the file are left off (with yours the first row in each category) which lowers the grand... |
Forum: C Apr 5th, 2008 |
| Replies: 4 Views: 517 I've created a program that writes info to a specific file and reading from it to generate an income report. The problem I'm having is that when I geerate my report, the last person that was entered... |
Forum: C Mar 30th, 2008 |
| Replies: 4 Views: 2,116 What method would be most suitable for a logging file? The data would be of the same length and the program would be reading from the file on a moments notice to generate a report but the file would... |
Forum: C Mar 29th, 2008 |
| Replies: 6 Views: 720 That's what it saw in Deitel and Deitel C How to Program. Said C99 provides the header file.
I have another problem; line 32 doesn't work. When the data is being written back to the file. The... |
Forum: C Mar 29th, 2008 |
| Replies: 6 Views: 720 I get the following errors with bool and it still doesn't work when I include <stdbool.h>...
I resorted to
int found = 0; |
Forum: C Mar 29th, 2008 |
| Replies: 6 Views: 720 I'm trying to create a function that searches through all the beds in a hotel until it finds one that is available or just ends when all the records are searched. When it finds that bed, it updates... |
Forum: C Mar 28th, 2008 |
| Replies: 1 Views: 729 I'm having a problem maintaining the data in the file. Everytime I enter a person's data the display code I have only displays the first one I entered. I'm not sure if there's somethin wrong with the... |
Forum: C Mar 28th, 2008 |
| Replies: 4 Views: 2,116 When is it better to use random-access ? When is it not?
When is it better to use sequential-access? When is it not?
So far I'm only sure to use random access in a situation where I'm dealing... |
Forum: C Mar 15th, 2008 |
| Replies: 12 Views: 1,632 The problem was actually in my uppercase function. The length of the returning string was always +1 than what it should be or at the array limit depending on what the user entered. In my case if I... |
Forum: C Mar 11th, 2008 |
| Replies: 12 Views: 1,632 Why doesn't it work when I enter "NO"?
do{
printf("\n\nDo you wish to continue (yes or no): ");
uppercase(fgets(progress, sizeof progress, stdin));
fflush(stdin);
... |
Forum: C Mar 8th, 2008 |
| Replies: 4 Views: 2,433 Okay thanks, with the getchar() function there's no need for the fflush(stdin). |
Forum: C Mar 8th, 2008 |
| Replies: 4 Views: 2,433 When I use stdout the program does not allow me to enter the Patient's Name but simply moves on...
I know those two methods will work but I want to understand what the real difference between them... |
Forum: C Mar 8th, 2008 |
| Replies: 4 Views: 2,433 I'm experimenting with fgets because I heard it's better for dealing with memory buffer overflow but I am not sure of the sizeof component and how to the stdin part helps it to work. Is METHOD 1 or... |