943,774 Members | Top Members by Rank

Ad:
  • C Discussion Thread
  • Unsolved
  • Views: 731
  • C RSS
Sep 13th, 2009
0

parenthesis checking...

Expand Post »
hi to everyone...

i will make a program about parenthesis checking and my prof said that we will not be using a stack for this.

will you kindly help me to this..

aside from stack can you help me on what to use.?.
Similar Threads
Reputation Points: 10
Solved Threads: 0
Light Poster
zhinokin is offline Offline
26 posts
since Aug 2008
Sep 13th, 2009
1

Re: parenthesis checking...

So use a counter.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005
Sep 13th, 2009
0

Re: parenthesis checking...

Click to Expand / Collapse  Quote originally posted by Salem ...
So use a counter.
should i still use an array for this....?..
Reputation Points: 10
Solved Threads: 0
Light Poster
zhinokin is offline Offline
26 posts
since Aug 2008
Sep 13th, 2009
0

Re: parenthesis checking...

  1. counter += 1*(ch=='(') - 1*(ch==')');
It's cryptic because anything simple is the whole answer on a plate.
Team Colleague
Reputation Points: 5862
Solved Threads: 950
Posting Sage
Salem is offline Offline
7,164 posts
since Dec 2005

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C Forum Timeline: How to read and load .dat file then place it in hash table
Next Thread in C Forum Timeline: Getting information from internet in C





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC