f1307.cpp
资源名称:c.rar [点击查看]
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:1k
源码类别:

C#编程

开发平台:

Visual C++

  1. //=====================================
  2. // f1307.cpp
  3. // sony handle application
  4. //=====================================
  5. #include"createsony.h"
  6. #include"sonyhandle.h"
  7. enum { PUREFLAT, PLASMA, LIQUIDCRYSTAL, NANOMETER };
  8. //-------------------------------------
  9. void fsh(SonyHandle& sh){
  10.   sh->adjustVolume();
  11.   sh->switchChannel();
  12. }//------------------------------------
  13. void createSonyObject(CreateSony* sp){
  14.   SonyHandle sh29(createSonyInch29(sp));
  15.   SonyHandle sh43(createSonyInch43(sp));
  16.   fsh(sh29);
  17.   fsh(sh43);
  18. }//------------------------------------
  19. int main(){
  20.   if(CreateSony* sp = createCreateSony(PLASMA)){
  21.     createSonyObject(sp);
  22.     delete sp;
  23.   }
  24. }//====================================
  25.