( 11 )有如下程序:
#include<iostream>
using namespace std;
class Monitor{
public:
Monitor ( char t ) : type ( t ) {}
void print ( ) const
{cout<<"The type of monitor is"<<type<<endl;}
private:
char type;
};
class Computer{
public:
Computer ( int i , char c ) : 【 11 】 {}
void Print () const
{cout<<"The computer is"<<id<<endl;mon.Print ( ) ; }
private:
int id;
Monitor mon;
};
const Computer myComputer ( 101,'B' ) ;
myComputer .Print ( ) ;
return 0;
}
请将程序补充完整,使程序在运行时输出:
The computer is 101
'The type of monitor i.s 8
第1题:
A.8
B.9
C.10
D.11
第2题:
第3题:
第4题:
● A (74) is a device that enables the computer to handle sounds.
(74)
A. network card
B. video card
C. sound card
D. monitor
第5题: