Forum: C Jun 26th, 2008 |
| Replies: 16 Views: 685 Re: Need help with struct records! Where the hell else would I have gotten this code from? I come on here for help and instead get a bunch of people arguing and some jerk telling me that I didn't write the code just because I'm... |
Forum: C Jun 24th, 2008 |
| Replies: 16 Views: 685 Re: Need help with struct records! Ok but when I put the arguments in I get even more errors.
Ex:
case 2: total_sales(double *m, char **cal, int c); break;
I just don't know how I'm supposed to put the arguments in the case... |
Forum: C Jun 24th, 2008 |
| Replies: 16 Views: 685 Need help with struct records! Ok so here is the code I've written already, as well as the errors I get when I try to build. Please help me figure out what the problem is!
#include <stdio.h>
#include <stdlib.h>
#include... |
Forum: C May 28th, 2008 |
| Replies: 3 Views: 374 |
Forum: C May 28th, 2008 |
| Replies: 3 Views: 374 |
Forum: C May 7th, 2008 |
| Replies: 1 Views: 227 Having trouble displaying output of binary file Hi guys, I have been working on this for 13 hours straight now, and I am going out of my mind. I have a final due tonight and I cannot figure this out at all. The program is basically a product... |
Forum: C May 7th, 2008 |
| Replies: 12 Views: 418 Re: Struct and binary files... Okay so I made a bunch of changes and now I'm getting the data into the file and displaying the report but it is completely messed up. The description won't display properly, the values get all... |
Forum: C May 7th, 2008 |
| Replies: 12 Views: 418 Re: Struct and binary files... Come on everyone, help a girl out... I really need to figure out what I'm doing wrong or I'm gonna blow it when I do my final program :(
P.S. I didn't mean to imply that you should help me because... |
Forum: C May 6th, 2008 |
| Replies: 12 Views: 418 Re: Struct and binary files... Alright, worked on it for a while and sort of did the report() function but I don't think it's quite the right way, and none of the values are showing up right.
// ** Prototypes **
void... |
Forum: C May 6th, 2008 |
| Replies: 12 Views: 418 Re: Struct and binary files... Oh wow awesome, thanks!
So now I am starting with fresh code (or rather the error-free code from my previous lab). Now I am editing this lab using struct and binary record to accept the... |
Forum: C May 6th, 2008 |
| Replies: 12 Views: 418 Re: Struct and binary files... Alright so it looks like I'm still getting an error... When I select 5 to quit and it asks if I'm sure, if I type "Y" it breaks and I get a window that says "Unhandled exception at 0x1029984f... |
Forum: C May 6th, 2008 |
| Replies: 12 Views: 418 Re: Struct and binary files... Alright the limits file wasn't working because it got moved out of the lab folder. so now this whole code works and I just need to use a structure and binary record to make the report() function. |
Forum: C May 6th, 2008 |
| Replies: 12 Views: 418 Re: Struct and binary files... Good lord I'm so confused lol. What part of my version was wrong? I'm supposed to use different quotes? Where in the world are they? lol. It's finals week and I'm exhausted heh.
As far as the... |
Forum: C May 6th, 2008 |
| Replies: 12 Views: 418 Re: Struct and binary files... I thought
fp = fopen(“data.dat”, “ab”);
was the right way to code it. It's what my teacher wrote in our lecture.
What do you mean when I have something useful make a copy of it? I'm... |
Forum: C May 6th, 2008 |
| Replies: 12 Views: 418 Struct and binary files... Okay so I'm pretty sure I've completely destroyed this code. All I'm trying to do is send the user-inputted product info into a binary file to display when the user chooses the report option from... |
Forum: C Apr 23rd, 2008 |
| Replies: 6 Views: 324 |
Forum: C Apr 23rd, 2008 |
| Replies: 6 Views: 324 Re: Validate range from text file Wow, that was a lot easier than I thought it would be! The only problem I'm having now is that when I do input a number that is not in the range, I get a fatal error. Here are the functions I am... |
Forum: C Apr 23rd, 2008 |
| Replies: 6 Views: 324 Re: Validate range from text file Sorry I took so long to respond. I watched someone get shot in the head and killed the other night and I've been having a really hard time getting anything done...
That's awesome to know that I'm... |
Forum: C Apr 18th, 2008 |
| Replies: 6 Views: 324 Validate range from text file I am so incredibly frustrated right now. I have seriously been sitting here for hours trying to figure out how to validate program input using ranges from a text file. My teacher gives us a lecture... |
Forum: C Apr 12th, 2008 |
| Replies: 5 Views: 255 Re: Need help with pointers, arrays! Thanks, I'm gettin there. Still just confused though because I'm not sure how to get rid of the infinite loops. My brain is exhausted. This is what I have:
#include <stdio.h>
#include... |
Forum: C Apr 12th, 2008 |
| Replies: 5 Views: 255 Re: Need help with pointers, arrays! Wow, you're right. I'm just having a really hard time focusing on this assignment. Close friend died a few days ago so things have been chaotic. I usually at least understand the basic stuff! I... |
Forum: C Apr 12th, 2008 |
| Replies: 5 Views: 255 Need help with pointers, arrays! Hi guys, I've got the code all written but there are a ton of runtime errors that need to be fixed, mainly with calculations and inputting data into the array. I also need to use pointers when... |
Forum: C Apr 11th, 2008 |
| Replies: 7 Views: 302 Re: Switch menu help The thing I can't figure out is why I'm getting these errors in the switch menu() function. I thought I was supposed to just put exactly what I had written in the prototype as the parameters. The... |
Forum: C Apr 11th, 2008 |
| Replies: 7 Views: 302 Re: Switch menu help Can anyone help me with this? I'm stressing out so much because I can't get it to work and it's due at midnight. I've been up since yesterday trying to figure it out while I'm not at work, and I'm... |
Forum: C Apr 11th, 2008 |
| Replies: 7 Views: 302 Re: Switch menu help yeah the whole scores[101] thing is confusing me. Don't know when to use it! As far as count goes, it says to receive the array and count in each function... I assumed this meant the count that I... |
Forum: C Apr 11th, 2008 |
| Replies: 7 Views: 302 Re: Switch menu help Yeah I'm extremely confused about the whole thing. I finished writing the code and Im only getting 5 errors but I have a feeling it's not going to work out at all the way it's supposed to. To make... |
Forum: C Apr 11th, 2008 |
| Replies: 7 Views: 302 Re: Switch menu help K just to clarify the problem I'm having, I'm trying to call getgrades(), showgrades(), etc. from the menu, but it keeps giving me errors regarding the parameters. The original parameters I had for... |
Forum: C Apr 11th, 2008 |
| Replies: 7 Views: 302 Switch menu help Hey guys, I'm trying to work on this switch menu and I'm not sure how to call a function with parameters from a case statement. Here is the code for my program so far (not finished with the actual... |
Forum: C Apr 7th, 2008 |
| Replies: 13 Views: 633 Re: Help with pointer syntax... yeah... it did work for me... is it actually wrong or no? And thanks for at least correcting your unnecessarily terse response ;) |
Forum: C Apr 4th, 2008 |
| Replies: 13 Views: 633 Re: Help with pointer syntax... Well I just meant as far as syntax goes. It all worked for me but I'm having a hard time understanding the concept of pointer syntax because I feel like it was too easy! |
Forum: C Apr 4th, 2008 |
| Replies: 13 Views: 633 Re: Help with pointer syntax... Hey guys, thanks for your help. Sorry for taking so long to respond... Been very sick this week! So here is what I have for the pointer syntax on those two functions. Let me know if you see... |
Forum: C Mar 29th, 2008 |
| Replies: 13 Views: 633 |
Forum: C Mar 28th, 2008 |
| Replies: 13 Views: 633 Help with pointer syntax... Hi guys,
Ok so I need to use pointer syntax for the functions init-costs(), show-costs() and toUpper() in the following code. I'm still working on the first two, but I'm curious as to what needs to... |
Forum: C Mar 14th, 2008 |
| Replies: 13 Views: 621 |
Forum: C Mar 14th, 2008 |
| Replies: 13 Views: 621 |
Forum: C Mar 14th, 2008 |
| Replies: 13 Views: 621 |
Forum: C Mar 14th, 2008 |
| Replies: 13 Views: 621 |
Forum: C Mar 14th, 2008 |
| Replies: 13 Views: 621 |
Forum: C Mar 7th, 2008 |
| Replies: 6 Views: 246 Re: Array problem... Alright, I got it! Thanks a lot for your help, guys!
Here is the working code:
#include <stdio.h>
#include <ctype.h>
#include <stdlib.h> |
Forum: C Mar 7th, 2008 |
| Replies: 6 Views: 246 Re: Array problem... Yeah, I saw that and fixed it. Here is the code I have now... I run the program and it goes all the way through the first show() function, then at the continue prompt I press 'n' and it shows the... |