填空题

下面程序的输出结果是______。
#include<iostream.h>
void main()

inta[6]=1,2,3,4,5,6;
for(int i=0;i<5;i++)
cout<<a[i]<<““;
cout<<endl;

【参考答案】

1 2 3 4 5。
<上一题 目录 下一题>
热门 试题

填空题
有以下程序: #include <iostream> using namespace std; class Base private: int a,b; public: Base(int x, int y) a=x; b=y; void Show() cout<<a<< ’,’ <<b<<end1; ; class Derived : public Base private: int c; public: Derived(int x, int y, int z) : Base(x,y),c(z) void Show() cout<<c<<end1; ; int main() Base b(50,50),*pb; Derived d(10,20,30); pb=&d; pb->Show(); return 0; 运行后的打印结果为______
填空题
C++本身没有定义I O操作,但I 0操作包含在C++实现中。C++标准库iostream提供了基本的I O类。I O操作分别由类istream和工______提供。
相关试题
  • 下列程序的输出结果为______。 #in...
  • 在下面程序的横线处填上适当的内容,使程序...
  • 耦会和内聚是评价模块独立性的两个主要标准...
  • 如果表达式--x中的“--”是重载的类运...