约瑟夫问题链表解决方法(带有析构函数)
摘要:#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
浙公网安备 33010602011771号