Search:

Type: Posts; User: SiriusWhite

Search: Search took 0.01 seconds.

  1. Thank you for the advice, I haven't been able to...

    Thank you for the advice, I haven't been able to come online because of a stomach flu, but I'm back now!
  2. Replies
    1
    Views
    6,728

    Printing the receipt

    # 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
  3. My program runs fine when I comment out the...

    My program runs fine when I comment out the function call for printReceipt in main (line 263)... I'll just have to try harder;)
  4. Yes, I did compile it, but my Dev doesn't...

    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!
  5. # include # include # include...

    # 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...
  6. Here is my updated program. I did the corrections...

    Here is my updated program. I did the corrections that you suggested:



    void flush_input_buffer(void)
    {
    int fflush(FILE *ostream);
    }
  7. the number of parameters is 3, and everything...

    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...
  8. I made a lot of changes though, I made separate...

    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;
    ...
  9. Calling a function with structure elements.

    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...
Results 1 to 9 of 9