... stack<int> st; for( int i = 1; i <= 10; i++ ) st.push(i); printf("Size: ... tmp); sum += tmp; st.pop(); } printf("\nTotal: %d\n", sum); return 0; } ...
確定! 回上一頁