Complete C++ Placement Course (Data Structures+Algorithm) : • C++ Full Course | C++... Telegram: t.me/apnikaksh... Instagram: / dhattarwalaman Notes of this Lecture:
I Also done just we have to push additional character while we are converting infix to post and after that we use that to handle multiple digits. You also do this for int and float data type.
How compiler know that 467 is 46, 7 not 4, 67, you have to include blank spaces, didi already mentions that this code is for single digit integers. if you want for any no of digits, you can try this: #include #include #include using namespace std; int PostfixSolver(string str); int main() { string str; getline(cin, str); cout
I didn't understood this thing like you are storing value in op2 and then op1 so uh got 25 but when I stored value in op1 and then op2 I got value 7 it means there is some concept for storing values please explain.
Assume you are dealing with 2 3 - then first you push 2 in stack and then 3, so now when you pop 3 will come first, then 2, if you are doing operation as op1 - op2 then op1 should be 2, so first we store the top value of stack in op2 then pop this value out, then store in op1.
Wait wait wait isn't the code taught in the last video for evaluation she is teaching the same code for postfix evaluation. I guess the program for postfix evaluation expression is wrong
If there will be 3 operands initially like “231*+9-“ the answer would be wrong .. because when you will execute, it’ll give 14 as the answer but the correct answer is -4
Mam where r notes from last few lectures???? 😒😒😞😞🥺🥺😭😭
I am waiting this video really helpful thnkk bhaiya
Excellent explanation and animations thanks for free of cost for the premium course
Thanks a lot from❤️
I guess there should be change i.e. in subtraction and division there should be operand2-operand1 and operand2/operand1 respectively.
no bro
In case the evaluation should be op2 operand op1
Bhaiya please upload a video regarding college projects.
Ha bhaiya we need that one
Hey there ,
I have one doubt in this topic, if some value have 2 digit value then ?
so this video is short before the video of PREFIX evaluation😊😉
it was bit difficult in start. But now I am happy after doing all that.
thanks for explaining this part "st.push(s[i]-'0');" I were confused in previous video about this.
I hope you will continue to this series along with competitive coding
Mujhe laga aman bhaiya premium toh nahi kr rahe corse ko😬;😂😂
this code only work for single digit number like 3+4 = postfix is 34+
how can we do for two digit number like 34+23 = postfix is 3428+
It was great....
thank you so much
it fails on 2 digit operand
Very nice 👌👍👌👍👍👍👍👍
Please make vedio on specialization Artificial intelligence and machine learning, this area is different portion of cse, Please make a vedio on it.
spelling to sikhle pehle pichai ki aulad😂😂
Informative session aman bhaiya
Thank you 🙏
What if string not contains only single digit numbers???
Mam, if i want to two digits number instead of one digit number then ......
Additional Challenge: make it for multiple digit numbers (easy to do, but you will learn new stuffs) {Hint: I did it with sstream and stod}
We can do that with substr function
an array of strings can be used to do that
I Also done just we have to push additional character while we are converting infix to post and after that we use that to handle multiple digits. You also do this for int and float data type.
U r awesome di
this code will not work when a no. has 2 or more digits like 467*2+3-6/
first operation should be 46*7 but code will take 6*7
How compiler know that 467 is 46, 7 not 4, 67, you have to include blank spaces, didi already mentions that this code is for single digit integers.
if you want for any no of digits, you can try this:
#include
#include
#include
using namespace std;
int PostfixSolver(string str);
int main()
{
string str;
getline(cin, str);
cout
sir , I pass class 12th so I take this course
I didn't understood this thing like you are storing value in op2 and then op1 so uh got 25 but when I stored value in op1 and then op2 I got value 7 it means there is some concept for storing values please explain.
I think the problem will be with division op1/op2 and op2/op2 will give different values same goes with exponential operation
Assume you are dealing with 2 3 - then first you push 2 in stack and then 3, so now when you pop 3 will come first, then 2, if you are doing operation as op1 - op2 then op1 should be 2, so first we store the top value of stack in op2 then pop this value out, then store in op1.
Didi ka teaching style bhut accha h 🥰🥰🥰🥰
Please add caption 🙏 🙂
any one here continue this series now????
hlo buddy
Yo
website development course kab daloga
Mam notes are not available 😕
notes kha hai
mam please provide notes
Mam thoda slow
34 video ke wad pdf nhi hy
Can you evaluate this postfix operation : 2 3 + 11 * /
55/
Bhaiya ham 1st sem me hain aur hame c language hi nahi aati to aap please c language ke videos banaiye please
3 value ho then ma'am
Notes daaaldo na 😇😇
2digit number ke case me kese kaam krega ye
Iske liye doosra program likhna padega using spaces between operands and operators
Wait wait wait isn't the code taught in the last video for evaluation she is teaching the same code for postfix evaluation.
I guess the program for postfix evaluation expression is wrong
Ya, I think in the prefix expression evaluation, we should iterate from end( ) to begin( ) of string, and do the same procedure as postfix.
You should pay more attention towards it's dry run.
yes bruh its almost same
arey did and bol dete kyu itna kasht uthaya hindi ke liye 5:15 pe
If there will be 3 operands initially like “231*+9-“ the answer would be wrong .. because when you will execute, it’ll give 14 as the answer but the correct answer is -4
no buddy its giving correct answer i.e. -4....please check your code u must be doing something wrong
this code is only for single digits operations
you dont explain in detail
The wood frog can hold its pee for up to eight months😎
Mam, i am getting segmentation fault how to correct it ??, therefore no output is there
you might have some silly mistake in your code......................happens a lot with me. something due to which your program is keep going
"any college +& school students here "💖😘
yes
Yeah
Gu Khaale
Want web development videos????
Thanks a lot