From cf76e3c5521a8963bc2052109a953324eea384af Mon Sep 17 00:00:00 2001 From: irfadkp Date: Tue, 6 Oct 2020 15:11:46 +0530 Subject: [PATCH 1/2] added new hero hero component --- 17.c | 40 ++++++++++++++++++++-------------------- 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/17.c b/17.c index a167501..c5172e6 100644 --- a/17.c +++ b/17.c @@ -1,4 +1,4 @@ -//infix to postfix +//infix to POSTFIXXX #include @@ -19,7 +19,7 @@ int TOP=-1; void main() { int i,j; - char infix[20],postfix[20],x,ch; + char infix[20],POSTFIXXX[20],x,CHARACTER; printf("Enter the infix expression: "); scanf("%s",infix); push('('); @@ -29,33 +29,33 @@ void main() { x=pop(); push(x); - ch=infix[i]; - if(isalnum(ch)) - postfix[j++]=ch; - else if (ch=='+' || ch=='-' || ch=='*' || ch=='/' || ch=='^'|| ch=='(' || ch==')') + CHARACTER=infix[i]; + if(isalnum(CHARACTER)) + POSTFIXXX[j++]=CHARACTER; + else if (CHARACTER=='+' || CHARACTER=='-' || CHARACTER=='*' || CHARACTER=='/' || CHARACTER=='^'|| CHARACTER=='(' || CHARACTER==')') { - if (ch==')') + if (CHARACTER==')') { x=pop(); while(x!='(') { - postfix[j++]=x; + POSTFIXXX[j++]=x; x=pop(); } } - else if (icp(ch)>isp(x)) + else if (icp(CHARACTER)>isp(x)) { - push(ch); + push(CHARACTER); } - else if (icp(ch) Date: Tue, 6 Oct 2020 15:18:31 +0530 Subject: [PATCH 2/2] added new hero hero component --- 222.c | 0 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 222.c diff --git a/222.c b/222.c new file mode 100644 index 0000000..e69de29