{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

iplaymiddlec cims void tunewind1 i

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 清清清清清清清清清清清清 清清 1 清清清清清清清清 CIMS 清清 清清清清清清清清 清清 清清 清清 清清 清清 2 清清清清清清清清 CIMS 清清 lass Engine { class Car { ublic: public: void start() const {} Engine engine; void rev() const {} Wheel wheel[4]; void stop() const {} Door left, right; // 2­ ; door lass Wheel { }; ublic: void inflate(int psi) const {}int main() { ; Car car; lass Window { ublic: car.left.window.rollup(); void rollup() const {} void rolldown() const {} car.wheel[0].inflate(72); ; } 清清清清清清清清 lass Door { ublic: W i n do w w i n do w ; void open() const {} void close() const {} ; 3 清清清清清清清清 CIMS 清清 清清清清清清清清清清清清清清清清清清清清清清清清 public 清 清清清清清清清清 清清清 man 清清 清清清清清清 Man John; strcpy(John.me.me.me .name, “John Smith”); Too too too stupid!!!!! 4 清清清清清清清清 CIMS 清清 class animal { public: char name[100]; }; class mammal{ public: animal me; ………… }; class human { public: mammal me; char ID[100]; }; class man { public: human m e ; 清清清清清清清清 class animal { public: char name[100];}; M a n J o h n; S t r c p y ( Jo h n .n a m e , “ J o h n S mi t h ”) ; class mammal: public animal{ ………… }; class people :public mammal{ public: char ID[100]; }; class man public people {public:fight();}; 5 清清清清清清清清 CIMS 清清 清清清清清清清清 清清清清 public private protected public OK 突突 O K 突突 O K 突突 private ­­ ­­ ­­ ­­ ­­ ­­ protected OK 突突 O K 突突 O K 突突 清清清清清清 清清突突突突突清清清清清清清清清 , 6 清清清清清清清清 CIMS 清清 突突突突突突突突突突突突突突 突突突突突突突突突突突突突突突 清清清清清清清清 清清清清清清清清清清清清 – – – 清清清清清清清清清清清 清清清清清清清清清清清清 清清清清清清清清清清清 清清清清清清清清清清清清清清清...
View Full Document

{[ snackBarMessage ]}