f1307.cpp
资源名称:c.rar [点击查看]
上传用户:puke2000
上传日期:2022-07-25
资源大小:912k
文件大小:1k
源码类别:
C#编程
开发平台:
Visual C++
- //=====================================
- // f1307.cpp
- // sony handle application
- //=====================================
- #include"createsony.h"
- #include"sonyhandle.h"
- enum { PUREFLAT, PLASMA, LIQUIDCRYSTAL, NANOMETER };
- //-------------------------------------
- void fsh(SonyHandle& sh){
- sh->adjustVolume();
- sh->switchChannel();
- }//------------------------------------
- void createSonyObject(CreateSony* sp){
- SonyHandle sh29(createSonyInch29(sp));
- SonyHandle sh43(createSonyInch43(sp));
- fsh(sh29);
- fsh(sh43);
- }//------------------------------------
- int main(){
- if(CreateSony* sp = createCreateSony(PLASMA)){
- createSonyObject(sp);
- delete sp;
- }
- }//====================================