includeiostream.hincludestdlib.hdefine maxsize 100最大人数struct Node{ int no第几个人 Nodenext } class Josephring{private:Nodeheadint totalnumpublic:Josephring(){head=new Nodehead->no=1head->next=head