Click here to Skip to main content
15,911,142 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to Write a Windows application that provides a text box for the user to enter an expression with parenthesis. Provide a Check Parenthesis button that, when clicked, runs a program that checks the number of parentheses in the expression.
Posted

I agree sandeep mewara. Your question is simple. Also it is a simple logic. why you can't write it. you can directly check parenthesis in the expression by using comparison function.
 
Share this answer
 
It does not work like this here.

Here is what is expected of enquirers:
1. TRY first what you want to do! You may find that it's not that hard.
2. Formulate what was done by you that looks like an issue/not working.

Try them and tell if you face issues.
Members will be more than happy to help like this.
 
Share this answer
 
Hello

I would suggest to use a parser.. If the parsing process is successful, the check for parenthesis is then Ok ...

Personally, I often use the parser written Nick Gammon (http://www.gammon.com.au/forum/?id=4649)

HTH

Thierry
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900