上述程序的输出为( )
发布于 2022-03-03 14:10:04
#include<bits/stdc++.h> using namespace std int main(){ stack<int>st int pos = 1 while(pos <= 3){ st.push(pos++) } cout<<st.top() while(pos <= 5){ st.push(pos++) } while(!st.empty()){ cout<<st.top() st.pop() } return 0 }
上述程序的输出为( )
登录后免费查看答案
关注者
0
被浏览
4