title: C++: Checking to see if paranthesis and brackets are balanced in a string (Logic question)
body: <p>Check the string if every '(' in it is met by either ')', or '{'.
  Check the string if every '{' in it is met by either '}', or '('.</p>
  <p>You can never have string like this &quot;a(a{a)a}a&quot; for example, but a string like this &quot;a(a{a}a)a&quot; is okay.
  Additionally, all opening parenthesis and opening curly brackets must have a matching closing pair.</p>
  <p>The function will return true if balanced, or false if not. Been stumped on this for the past few hours.</p>