Skip to main content

Simple Infix to Postfix in C++

Converting an Infix expression to postfix is not a big deal. Even though for a beginner it could be frustrating for hours.

Enough breaking your computers. Its time to finish it off!.

Infix expression:

     The Infix expressions are the expressions which we usually use in mathematical form.
Eg: a*(b+d*c)

Postfix expression:

     These expressions are used by the computer to evaluate the given infix expressions. They simply convert infix expression to postfix using stack data structure.
Eg: a b d c * + *

Stack data structure is pre-request for this conversion which we will not discuss here. Just google it for more information.
I have written a simple program for this conversion process. Almost it is self explanatory. Share if you like this.



Comments

Popular posts from this blog

Blogger.com VS Wordpress.com

Important : Here we compared Wordpress.com and not Wordpress.org Introduction:      First speaking of blogger. It was developed in Pyra labs then later acquired by Internet giant Google. This is completely free blogging platform written in Python. It integrates with most of google services. I am using blogger for the past two years. It is very compact and comfortable.      After speaking about Wordpress. It is developed by Automattic,Inc powered by opensource CMS(Content Management System) Wordpress written in php. It has very fine features such as landing page, sliders, etc. This is also a free platform but you have an option to get premium service too. I think this intro is good enough. Now let compare their features. Blogger Features: Just one google account is good enough to do anything. Integrates into your Gdrive, Photos,Google+. E-mail feeds are very easy to setup with Google owned Feed Burner service. Simplified user interface. ...

Pen drive Shortcut Problem

This guide is to recover your pen drive from shortcut into files.       Sometimes when you plug in your pendrive the contents inside your pendrive apperars to be shortcut. This is caused due a virus which cannot be fixed by your antivirus programs.  Be cool it is easy to fix and your files are safe.   Important don't delete those shortcut items.   1.Just find the drive letter assigned to your pen drive.(shown in windows explorer,eg: e: or f: etc)    2.Now open command prompt.(start->run->type cmd)    3.Type  attirib -h -r -s /s /d x:\*.*      Where  x  denotes your drive letter. Replace  x  with appropriate drive letter.    4.Press enter.  Now your shortcuts will be turned into files.  For any queries please comment below.

Tenda 4G301 Review

Description:       Tenda 4G301 is mid range consumer grade pocket router. Also it can act as a power bank. It has four different modes as mentioned in specification. For complete specification you can visit  Official Tenda . Review:       I am reviewing this product after using it hardly for 2 Months. General:     Tenda being a chinese manufacturer I am very surprised  that it has good build quality. But the is not fully comfortable. It also has some unsatisfied things into it. It come with only pure white color and glossy finish. Due to this even for fair usage your product gets scratched and dirty. There is no grip for placing it on the surface. The battery LED has abnormal behavior some times. Battery backup lasts more than 6 hrs but manufacturer claims for 15 hrs which is ridiculous. It has pleasant and neat interface for configuration purpose. While using  in 3G/4G router mode the dongle has to be removed to comple...