#include#include #include #include using namespace std; bool isValid(string s) { vector res; int len = s.size(); for (int i=0;i >a>>b;// printf("%d",a+b); string instr="{[[][)]]}"; bool res=isValid(instr); cout < << endl; return 0;}
1、先按照链接https://blog.csdn.net/qq_31640513/article/details/71038603 配置notepad++
2、配置上述代码,命名为x.cpp