Parentheses Balance

棧的基本題型  前括號1進棧,後括號1出棧,有後括號那麼他的前面必然是前括號。 1 #include <iostream> 2 3 using namespace std; 4 #include<stack> 5 #include<stdio.h> 6 #include<math.h> 7 #include<string.h> 8 int main() 9 { 10 11
相關文章
相關標籤/搜索