int main() {
cout << "please enter the string for which bracket operator will be applied too: \n \n";
string str;
str = GetLine();
BracketsEven(str);
BracketsNested(str);
I don't know why I keep seeing this assumption of c/c++ and if statements. we need to check character against each grouping symbol in this case. Otherwise we need to learn how to do select/case statements.
Your algorithm looks right from where I was standing. It was the structure of the if's that were wrong. You could learn to use code /code tags though. It was different form the original post that I saw.