摘要: [Microsoft]对stack上的元素排序,可以使用的方法有pop(), top(), push(), isEmpty(), isFull().void sort(Stack& stack)57 {58 if(stack.isEmpty())59 return ;60 int temp1=stack.pop();61 sort(stack);62 if(stack.isEmpty())63 {64 stack.push(temp1);65 return ;66 }67 int temp2... 阅读全文
posted @ 2013-09-21 19:38 英雄莫问 阅读(280) 评论(0) 推荐(0)