2008年7月10日

约瑟夫问题链表解决方法(带有析构函数)

摘要: #include <iostream>usingnamespace std;class Joseph{protected: int number_of_people; int step;public: virtualvoid CreateOutput() =0; Joseph(){ number_of_people =0; step =0; } Joseph(int n,int m){ number_of_people = n; step = m; }};class JosephWithLink... 阅读全文

posted @ 2008-07-10 11:04 NULL00 阅读(853) 评论(0) 推荐(0) 编辑

导航