whats wrong with my code? everytime that i compile it, it has this error "85 | if((choice=='e')||(choice=='E')) |
^~"
Printable View
whats wrong with my code? everytime that i compile it, it has this error "85 | if((choice=='e')||(choice=='E')) |
^~"
Well you need to post more than the fragment of one line of code.
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();
}
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
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
This is an error message.
You've posted nothing like that so far.Code:foo.c:82:11: warning: suggest parentheses around assignment used as truth value [-Wparentheses]
82 | if (flag = 0)
| ^~~~
Getting really bored of trying to get blood out of a stone here.