More unmatched
Transcript
The comic has C++ code.
int
tokenizer::valid (string const& statement
{
int level = 0;
for (int i = 0; i < statement.size ( ; ++i
{
if (statement[i == '(') level++;
else if (statement[i] == ')' level--;
if (level < 0) return level;
return level;
}
Caption: (An unmatched left parenthesis creates an unresolved tension that will stay with you all day.
(no title text)