填空题

下面程序的打印结果是______。
#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;

【参考答案】

B