题目
程序改错题,
//实验二(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
//实验二(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
#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,人们染上烟瘾,最终因吸烟使自己丧命.
最新试题
- 1一块梯形地(如图),甲比乙高50cm.现想把这块地推平整,要从甲取下多少厘米厚的土填在乙上?
- 2合并同类项:2x2+1-3x+7-3x2+5x.
- 3溶解和蒸发时玻璃棒的作用是什么?
- 4小明和爸爸现在的年龄和是34岁,3年后爸爸比小明大24岁,小明和爸爸今年各多少岁?
- 5修一条路,第一天修了全长的四分之一,比第二天多修了全长的六分之一.两天一共修了全长的几分之几?
- 6x的平方+y的平方,xy=2,则x分之1+y分之1分之1=?
- 7有一个周长是72厘米的长方形,它是由3个大小完全相同的正方形拼成,每个正方形面积是81平方厘米?
- 8物理中关于光的折射问题
- 9用情态动词或否定形式填空1、He ---be at home now ,because he called me from the office just now
- 10HNO3与HNO2的酸酐是什么?急
热门考点