已采纳 周思睿 新手光能 就是说这个人报的数是奇数就输出他的学号 核心代码: for(int i=1;i<=n;i++) { cin>>a[i]; if(i%2!=0) cout<<a[i]<<' '; }