A. An LCD screen consumes more power than a CRT screen.
B. An LCD screen display may present high-quality images but only to viewers sitting directly in fron of the screen.
C. Currently, all laptops use LCD screens.
D. An LCD screen is considerably more expensive than a CRT screen.
第1题:
A. [edit security screen] user@host# show ids-option untrust-screen { alarm-test-only; }
B. [edit security screen] user@host# show ids-option untrust-screen { alarm-without-drop; }
C. [edit security screen] user@host# show ids-option untrust-screen { alarm-no-drop; }
D. [edit security screen] user@host# show ids-option untrust-screen { test-without-drop; }
第2题:
第3题:
基于本单元前一个作业【创建Screen类】,为Screen类增加一个私有函数,用于检测屏幕的宽与高是否符合逻辑
第4题:
class Screen {
friend istream&
operator>>( istream&, Screen& );
friend ostream&
operator<< ( ostream&, const Screen& );
public:
// ... Screen 类的其他部分
};
&是引用的符号。相当于别名的意思。返回引用是为了能让操作符连用,运行会快一些。
如定义Screen s1,s2;
cin>>s1>>s2;
第5题:
基于本单元的作业3,修改Screen类,添加析构函数;同时补充deleteInstance()函数,能够删除在createInstance()中创建的Screen对象;完成单例模式练习
第6题:
screen对象可以获得屏幕的大小