以下两种循环结束方式中第一种是正确的,第二种是Re;
while (s1.empty() == 0) {
t1.push(s1.top()); s1.pop(); } while (1) { if (s2.empty() == 1)break; t2.push(s2.top()); s2.pop(); }
你是不是弄反了