Thank you for the advice, I haven't been able to come online because of a stomach flu, but I'm back now!
Type: Posts; User: SiriusWhite
Thank you for the advice, I haven't been able to come online because of a stomach flu, but I'm back now!
# include <conio.h>
# include <stdio.h>
# include <stdlib.h>
# include <string.h>
#define PASSWORD 161996
#define TEXTSIZE 80
#define TAX 0.01
#define NUM_BREAKFAST_ITEMS 3
My program runs fine when I comment out the function call for printReceipt in main (line 263)... I'll just have to try harder;)
Yes, I did compile it, but my Dev doesn't describe the errors to me when I get one, so I basically have to figure them out on my own. Thanks for showing me them though!
# include <conio.h># include <stdio.h>
# include <stdlib.h>
# include <string.h>
#define PASSWORD 161996
#define TEXTSIZE 80
#define TAX 0.01
#define NUM_BREAKFAST_ITEMS 3
#define...
Here is my updated program. I did the corrections that you suggested:
void flush_input_buffer(void)
{
int fflush(FILE *ostream);
}
the number of parameters is 3, and everything matches and adds up. I think it may have something to do with the structure menu. I tied calling the objects in the structure separately but that does...
I made a lot of changes though, I made separate functions for calculations and took out the 'info' that was a structure.
int main (){
interface ();
info in1;
MenuData menu;
...
const MenuData breakfast[NUMOFBREAKFASTITEMS] = {
{"Egg Breakfast", "Two eggs with a side of bacon and two slices of toast.", "", "2 Eggs, 2 Toats, 2 Bacons", "", 250.00},
{"Pancake...