1/*1编写程序,统计某旅馆住宿客人的总数,要求输入客人姓名,输出客人编号(按先后顺序自动生成) ,姓名以及总人数。*/#include#includeclass hotelprivate:char name20;int no;static int count;public:hotel()hotel(hotel count+;no=count;2hotel()count-;void set_information()coutname;count+;no=count;char get_name()return name20;int get_no()return no;void show_count()3coutn;for(i=0;in;i+)4guesti.set_information();guestn-1.show_count();for(i=0;in;i+)guesti.show_information();return 0;