+ 3

How it works??

The code below converts any infix expression to postfix expression. I've tried a lot but couldn't get it inside my head. So can u plz help me to understand how it works? = ) https://code.sololearn.com/c3XucBX6S6Ip/#cpp

22nd Oct 2021, 9:40 AM
Rishi
Rishi - avatar
4 Respostas
+ 3
Use debugger u will understood much better how its working. Your program generating warnings in line no 26 try this instead of int to unsigned for(unsigned int i = 0; i < s.length(); i++) {
22nd Oct 2021, 10:35 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 3
You have done this code so am expecting you have good knowledge of stack stl and properties . To understood any program is better to do dry run if you write flow in pen paper then definitely you will get an idea how its flowing further if you dont understood any of properties you can search on Google there not special in this code which are not understandable try to read line by line
23rd Oct 2021, 6:26 AM
A S Raghuvanshi
A S Raghuvanshi - avatar
+ 2
Inactive but I don't have access to a debugger =(
23rd Oct 2021, 6:08 AM
Rishi
Rishi - avatar
0
Ամիթ Սինգհ okay tnx I'll try. Also, I took this code from a tutorial website, is not mine
23rd Oct 2021, 10:36 AM
Rishi
Rishi - avatar