C++ PROGRAM to Convert Infix to Postfix Expression using STACK Data Structure (With Full Code) | DSA

Поділитися
Вставка
  • Опубліковано 2 січ 2025

КОМЕНТАРІ • 81

  • @yourbestie4138
    @yourbestie4138 4 роки тому +34

    advertisement - learning data structure and algorithm is difficult
    tanmay : hold my beer😂😂

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому +2

      😂🙏😁

    • @saipavankumark985
      @saipavankumark985 4 роки тому +5

      @@SimpleSnippets bro i have seen 4 episodes of harshad.
      in explaining and implementation of data structures you are vuska ka baaap

    • @SimpleSnippets
      @SimpleSnippets  3 роки тому +1

      No, no one cares ✌️😂

    • @convolutionalnn2582
      @convolutionalnn2582 3 роки тому

      @@SimpleSnippets Why do You create Satck with Class if it could be made by keyword stack

  • @khansaarshad8878
    @khansaarshad8878 4 роки тому +12

    This video proved to be extremely helpful to me.. Thank you so much.. More power to you

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому +1

      Thats really great to know buddy🙏 Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇

  • @kirigiri_vietnam
    @kirigiri_vietnam 3 роки тому +6

    OH MY GOD! THANK YOU SIR ! THERE IS NO WORD TO DESCRIBE MY HAPPINESS WHEN I FOUND THIS CHANNEL xD. and they say watching youtube everyday wont get me anywhere

  • @vijaybhame6773
    @vijaybhame6773 3 роки тому +3

    One of the best video explanation I have ever watched.
    Really helpful.

  • @someshpundir788
    @someshpundir788 2 роки тому +2

    The best guy. The best tutor. The best. Best best

  • @harshbharadwaj157
    @harshbharadwaj157 4 роки тому +1

    best c++ channel on youtube

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому

      Thats really great to know buddy🙏 Please support me by sharing the videos and our channel with your friends too. Thats the biggest help and support you can provide 😇

  • @Pages_Perfected
    @Pages_Perfected 3 роки тому +5

    First you explain better than some people
    Second my professor don't want to help me code this he is saying it is your own work
    He just explain the idea and I should write the code
    Well, I'm learning that's why you should help me
    Maybe I'm wrong, maybe

    • @SimpleSnippets
      @SimpleSnippets  3 роки тому +4

      You are right. That's why in my tutorials I cover both theory and practical part and provide both theory & full code on our website. Anyone can simply use the code to run on their system to understand the working. And also use the theory to prepare notes. As a beginner even I used to struggle with DSA hence I know what is needed by students 🤟😊

  • @SaumyaSharma007
    @SaumyaSharma007 4 роки тому +9

    Thanks a ton bro.....I am eagerly waiting to write it......
    It takes lot of efforts to make such types of content 🔥🔥🔥🔥🔥👌
    Finally code executed.... Credit goes to u bro👍👌

  • @samarthnaik8111
    @samarthnaik8111 3 роки тому +2

    Thanks a lot bro 🙏🙏
    It was of great help.... 🙏

  • @SANSKRUTISEN
    @SANSKRUTISEN Рік тому +1

    Thank God i found your channel 😍

  • @akashkhandelwal-altruistic5363
    @akashkhandelwal-altruistic5363 2 роки тому +2

    Awesome explanation 🙃

  • @saipavankumark985
    @saipavankumark985 4 роки тому +5

    bhai lots of thankyou
    I am watching your videos from starting, you are only the one who can understand students pain
    And your are teaching end to end #making skillest
    YOU MADE ME ZERO TO HERO IN PROGRAMMING
    proud of u bhai
    peace

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому +2

      Thanks buddy, I am really glad to hear that my videos have made these topics easy for you. Please do share the videos with your friends too & I hope you have subscribed. Thats the biggest help and support you can provide ✌

  • @culturapoliticaycomputador9999
    @culturapoliticaycomputador9999 3 роки тому +3

    Thank you so much mr. its an excellente code for learn something about postfix expressions.
    I see you web and is awesome!!

  • @aishahibrahim5171
    @aishahibrahim5171 3 роки тому +1

    this video help me so much in my assignment thank you so much

  • @TehamSaeed
    @TehamSaeed Рік тому +1

    The link of this video was provided in our university’s presentation lecture. We were guided to have an understanding of Infix to Postfix and Infix to Prefix Conversion. That’s how I got this video. You did a great job in easy and understandable way that your video is suggested at university level. Applause for your work. Thankful to UA-cam as well to be the platform of quality educational videos.

    • @SimpleSnippets
      @SimpleSnippets  Рік тому

      Thank you for such wonderful feedback and I'm glad my videos are helping students 😌
      May I know which University is this?

    • @TehamSaeed
      @TehamSaeed Рік тому

      @@SimpleSnippets Capital University of Science and Technology(CUST), Islamabad, Pakistan.

  • @yasirmumtaz2313
    @yasirmumtaz2313 2 роки тому +1

    UNDERSTOOD BOSS THANKS ALOT OF SUCH AN EFFORT FOR US REGARDLESS OF ANY REWARD.

  • @funlife4u2
    @funlife4u2 2 роки тому +1

    A very helpful lecture i found ✌God bless you Sir😄

  • @cjeeckazad2995
    @cjeeckazad2995 4 роки тому +2

    I just say you are amazing bro! really amazing

  • @kulich5388
    @kulich5388 Рік тому +1

    Thank you 👍Very useful 😁

  • @mwajahat
    @mwajahat 11 місяців тому +1

    Thanks for guidance. Moreover, please also update, If expression contains any digit or numerical value, as currently this program not work for it...!

  • @te-09mrudula_chaudhari39
    @te-09mrudula_chaudhari39 4 роки тому +1

    U give the best explanation !

  • @anilrao8301
    @anilrao8301 3 роки тому +1

    Can you make video without using stack and using pop and push functions

  • @biswajitsahoo1456
    @biswajitsahoo1456 3 роки тому +1

    brother, I think line no 21 there will be '||' operator because there may be 2 parenthesis sets

    • @CaffeineConnoisseurs
      @CaffeineConnoisseurs 3 роки тому

      I'm getting a segfault in this while loop and I'm not sure why.

  • @mubashirrahim992
    @mubashirrahim992 4 роки тому +1

    I have a question. If an expression contains integer along side variables. Then how to store that integer.
    E.g A=B=4.

  • @dheepakraaj8352
    @dheepakraaj8352 4 роки тому +1

    Bro I have one doubt if precedence is equal say for (eg:consider + is in top and - is incoming)then we need to pop the top of the stack(+) and whether we need to push( -)or we need to check with new top ??

  • @TheGuitarpro3
    @TheGuitarpro3 3 роки тому +1

    Thank you for the help!
    What if we want to put spaces between each operand and operator? How do we do that?
    Example: 5 + 6 * 3

    • @ratikvarshney
      @ratikvarshney 3 роки тому

      postfix+=temp; ke bad postfix+=" " lagado jit

    • @darellarocho5729
      @darellarocho5729 2 роки тому

      It shouldn't matter. The program will ignore spaces, regardless.

  • @mahrukhhafeez7398
    @mahrukhhafeez7398 3 роки тому

    it doesn't work for me ... i had changed a little bit of this code. my teacher said not to make a peek function (one function in which we can see the top value) so i directly poped the value then pushed it back but still my output gives only the first operator and literally nothing else .. just a plus sign and nothing. what do i do ?

  • @raihanamajed1745
    @raihanamajed1745 2 роки тому +1

    thank you bro you are the best

  • @mobeenaramzan8545
    @mobeenaramzan8545 4 роки тому +2

    plz tell me if we use numbers in infix expression to convert into postfix instead of using alphabets then what the code will be.
    example: 4+10-9

    • @umarajmal6216
      @umarajmal6216 3 роки тому +1

      store numbers as character e.g. operand will be greater than 0 and less than or equal to 9

  • @baharismail222
    @baharismail222 4 роки тому +2

    very nice keep it up...

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому

      Thanks buddy, please do share the videos with your friends too & I hope you have subscribed. Thats the biggest help and support you can provide ✌

  • @ayush6439
    @ayush6439 3 роки тому +1

    Thank you very much!

  • @convolutionalnn2582
    @convolutionalnn2582 3 роки тому +1

    Why do we create stack with class in your tutorial when it could be done in one keyword

    • @user-nm4vn9tq5o
      @user-nm4vn9tq5o 3 роки тому

      Because colleges demand us to manually implement stack

  • @SaradRana
    @SaradRana 4 роки тому +1

    Bhaiya can you make one playlist on Linux based systems
    How to operate it and perform different functions on it

  • @umarshafi6980
    @umarshafi6980 4 роки тому +2

    Any video of infix to prefix with c++ program

  • @aliyajahemadmattesabanavar8334
    @aliyajahemadmattesabanavar8334 4 роки тому +1

    excellent video

  • @dx4320
    @dx4320 4 місяці тому

    stack was unable to open what to do

  • @pratiksawant4662
    @pratiksawant4662 4 роки тому +1

    I tried same code but for
    input a+b-c
    Out put is +a-bc
    Please help

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому +1

      Check the code I have shared in the video description, cross check it with your code and see where you have made the mistake. seems like a silly if else mistake to me. ✌

    • @pratiksawant4662
      @pratiksawant4662 4 роки тому +1

      @@SimpleSnippets it worked i did a mistake

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому

      Oh that's great. What was the mistake though? Sometimes we do silly mistakes and they are actually harder to find compared to syntax errors 😅

    • @pratiksawant4662
      @pratiksawant4662 4 роки тому

      @@SimpleSnippets by mistake I used ' or ' and ' != ' In operator checking function

  • @sabirabiamir4334
    @sabirabiamir4334 3 роки тому

    Can you explain this using array please

  • @InduRajput-s2f
    @InduRajput-s2f 18 днів тому

    Sirji code wali link nahi khul rahi.....

  • @ranjithvelm1918
    @ranjithvelm1918 4 роки тому

    here is one mistake......when we have same precedence then first pop that value in the stack then push the value..........but u said is wrong

  • @the_shridhar
    @the_shridhar 4 роки тому

    I am getting error as what() bad_alloc how can i handle it

  • @kashafzahid2100
    @kashafzahid2100 3 роки тому +1

    can you plz tell if we use numbers in infix expression to convert into postfix instead of using alphabets then what the code will be.
    example: 4+10-9

  • @074vinaysuyal3
    @074vinaysuyal3 4 роки тому +1

    Good 👍👍👍😎

  • @rahultomar8349
    @rahultomar8349 2 роки тому +1

    nice video

  • @ashiqhussainkumar1391
    @ashiqhussainkumar1391 4 роки тому +1

    Thanks Dear brother

  • @FahadAli-lv2py
    @FahadAli-lv2py 4 роки тому +2

    Why have nt you made lectures on graphs? It would be really great If u made on em too sir. Thanks🙃

  • @shreyanshkasera8292
    @shreyanshkasera8292 4 роки тому

    It was helpful but you could have explained the code with a sample expression. that would've been better.

  • @newtechnology452
    @newtechnology452 4 роки тому +1

    thanks a lot

    • @SimpleSnippets
      @SimpleSnippets  4 роки тому

      Glad it was helpful! Please do share this video with your friends too buddy & please Subscribe. Thats the biggest help ✌

  • @tayyabasadiq6107
    @tayyabasadiq6107 2 роки тому

    Can you send me this program right now ??? Plz

  • @ritiksoni6976
    @ritiksoni6976 4 роки тому

    y bhut bda h type krne m

  • @tayyabasadiq6107
    @tayyabasadiq6107 2 роки тому

    If u have

  • @umarajmal6216
    @umarajmal6216 3 роки тому +1

    Peace :)

  • @agyapaldhanoa6204
    @agyapaldhanoa6204 3 роки тому +1

    great video