当前位置: > 程序改错题,...
题目
程序改错题,
//实验二(1)
#include
#include
int main( )
/* Pre:The user supplies an integer n and n decimal numbers.
Post:The numbers are printed in reverse order.
Uses:The STL class stack and its methods */
{
x05int n;
x05double item;
x05stack numbers; // declares and initializes a stack of numbers
x05cout item;
x05x05numbers.push(item);
x05}
x05cout

提问时间:2021-03-13

答案
#include
#include
using namespace std;
int main( )
/* Pre:The user supplies an integer n and n decimal numbers.
Post:The numbers are printed in reverse order.
Uses:The STL class stack and its methods */
{
x05int n;
x05double item;
x05stack numbers; // declares and initializes a stack of numbers
x05cout item;
x05x05numbers.push(item);
x05}
x05cout
举一反三
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
1,人们染上烟瘾,最终因吸烟使自己丧命.
版权所有 CopyRight © 2012-2019 超级试练试题库 All Rights Reserved.