填空题

程序:
#include"iostream.h"
void main()
{
int i=10;
int j=5;
cout<<j+i++<<endl;
}
的结果为______。

【参考答案】

O
<上一题 目录 下一题>
热门 试题

填空题
下面程序的打印结果是______。 #include <iostream> using namespace std; class Base public: Base(int x) a=x; void show() cout<<a; private: int a; ; class Derived : public Base public: Derived(int i) :Base(i+1) ,b(i) void show() cout<<b; private: int b; ; int main ( ) Base b(5) , *pb; Derived d(1); pb=&d; pb->show(); return 0;
填空题
如果要把返回值为void的函数A声明为类B的友元函数,则应在类B的定义中加入的语句是______。
相关试题
  • 在关系模型中,把数据看成一个二维表,每一...