文件名称:T101211h
介绍说明--下载内容均来自于网络,请自行研究使用
利用虚函数手段,按照三种不同的数据存储方式及其处理方法来实现如下的所谓“反序输出问题”:从键盘输入n 个int 型数据先存储起来(具体n 值由用户从键盘输入),而后再按照与输入相反的顺序将这些数据显示示在屏幕上。具体地说,可通过在基类baseCla 及其派生类method1Cla、method2Cla 和method3Cla中说明如下的同一个虚函数“virtual void reverseout()
-Use the virtual function means, in accordance with the three different data storage and treatment methods to achieve the following so-called " reverse order output: n int type data from the keyboard input to stored (n values from the keyboard by the user input) office, and then the reverse order as the input of these data shows shown on the screen. Specifically, by following instructions in the base class baseCla its derived class method1Cla, method2Cla and method3Cla a virtual function virtual void reverseout ()
-Use the virtual function means, in accordance with the three different data storage and treatment methods to achieve the following so-called " reverse order output: n int type data from the keyboard input to stored (n values from the keyboard by the user input) office, and then the reverse order as the input of these data shows shown on the screen. Specifically, by following instructions in the base class baseCla its derived class method1Cla, method2Cla and method3Cla a virtual function virtual void reverseout ()
(系统自动生成,下载前可以参看下载内容)
下载文件列表
T101211h\10121.txt
T101211h
T101211h