User Profile
Collapse
-
muhammadlodhi replied to I make this for balancing paranthesis of equation but i think it is wrong check and cin Cyeah i do but with error and many warning plz u can edit this plz do it thanks -
muhammadlodhi started a topic I make this for balancing paranthesis of equation but i think it is wrong check and cin CI make this for balancing paranthesis of equation but i think it is wrong check and c
...Code:int main(){ char i,input[30],close,open; for(i=0;i<='.';i++){ printf("enter equation"); scanf("%c",input[i]); if(input[i]=='(') input++; input[i]=open; else if(input[i]==')') input[i]--; input[i]=close; else if(open[i]==close[i]) { printf("paranthesis are balance"); } else printf("paranthesis are not -
Write this without lib and string.h files
plz urgent help thanks i need this without lib and string files...Code:#include<stdio.h> #include<conio.h> #include<stdlib.h> #include<string.h> struct Node; typedef struct Node * PtrToNode; struct Node { char element; PtrToNode Next; }; PtrToNode MakeEmpty(PtrToNode L) { L= new(Node); L->Next=NULL; -
the solution must be from left to right and paranthesis of c code must be balancedLeave a comment:
-
Parenthesis and internal arithmetic equation with operation
I have an equation like ((3+4)-(24/5)), and if the user presses ., then the equation has ended, and it checks that the parentheses are balanced and solves all the internal operations; what should I do? How do I make this program? Please help, thank you. I am required to use arrays to make sure the parentheses are balanced."
No activity results to display
Show More
Leave a comment: