Author | Message |
---|---|
Rinchan7
Posts: 56
|
Posted 05:28 Oct 06, 2014 |
Hey guys, Can someone give me a sorta hint has to how to make sure words are encased in parenthesis? I have the function as recursive, and I could easily make it check to see if it has the same number of () parenthesis but I can't quite think of a way to do this last part and finish. |
nextmatrixman
Posts: 57
|
Posted 07:47 Oct 06, 2014 |
You don't really need to care about anything else but the parenthesis characters. So when your program is reading through the input string, it should do something when it sees "(", and something else when it sees ")", ignore everything else. |