#include "iostream.h"
class tool { public: tool() { weight=1000; height=9000; length=8000; width=7000; cout<<weight<<" "<<height<<" "<<length<<" "<<width<<endl;}
~tool() { cout<<"this is retool"<<endl;} protected: int weight; int height; int length; int width; }; class desk { public: desk() { weight=1000; height=9000; length=8000; width=7000; cout<<weight<<" "<<height<<" "<<length<<" "<<width<<endl;} ~desk() { cout<<"this is redesk"<<endl;} protected: int weight; int height; int length; int width; }; class pair {public: pair() {cout<<"this is pair"<<endl; ~pair() {cout<<"this is repair"<<endl; } protected: tool tool; desk desk; int nomeeting };
void main() { pair a; }
//错误信息::E:\C++\gouzao.cpp(58) : fatal error C1004: unexpected end of file found