Thread: ordering system

  1. #1
    Registered User
    Join Date
    Jan 2022
    Posts
    4

    Exclamation ordering system

    whats wrong with my code? everytime that i compile it, it has this error "85 | if((choice=='e')||(choice=='E')) |
    ^~"

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    Well you need to post more than the fragment of one line of code.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered User
    Join Date
    Jan 2022
    Posts
    4
    this is my code in line 85
    Code:
    if((choice=='e')||(choice=='E'))
    	{
    		system("cls");
    		printf("--------------------\n");
    		printf("All About the Project");
    		printf("\n--------------------\n");
    		printf("This project is called 'Ordering System'");
    		printf("before i finally build this, i have watched a bunch of tutorials on YouTube,");
    		printf("i have posted questions in online forum.");
    		printf("and i asked for help to my classmates, and i am very lucky that they are willing to help.");
    		printf("the features of this program are:");
    		printf("The customers are able to choose what they want to order");
    		printf("it has also the billing system but its not actually good");
    		printf("and the last feature is the receipt, which i actually have a problem with that");
    		ext();
    	}

  4. #4
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    What is the actual error message?

    How did you declare choice?

    What is ext() ?

    This isn't a game of 20 questions to try and get you to show a decent amount of information that would enable us to help you.
    Short, Self Contained, Correct Example
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  5. #5
    Registered User
    Join Date
    Jan 2022
    Posts
    4
    the actual error message is at the top of this thread. i declare choice as a char data type and the ext is a function
    Last edited by p1ngu; 01-07-2022 at 03:20 AM. Reason: none

  6. #6
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    This is an error message.
    Code:
    foo.c:82:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
       82 |       if (flag = 0)
          |           ^~~~
    You've posted nothing like that so far.

    Getting really bored of trying to get blood out of a stone here.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. ordering system in c language
    By p1ngu in forum C Programming
    Replies: 1
    Last Post: 01-06-2022, 06:02 AM
  2. Ordering System in C with CRUD Feature
    By encepalopatyh in forum C Programming
    Replies: 1
    Last Post: 11-06-2020, 10:37 AM
  3. c-program for ordering system
    By primeG in forum C Programming
    Replies: 1
    Last Post: 03-01-2013, 09:28 AM
  4. Is is possible to specify the ordering of a std::map ?
    By manasij7479 in forum C++ Programming
    Replies: 26
    Last Post: 08-24-2011, 01:42 PM
  5. key ordering in map
    By m37h0d in forum C++ Programming
    Replies: 4
    Last Post: 04-07-2008, 08:28 AM

Tags for this Thread