1 //===================================== 2 // f1102.cpp 3 // Josephus Problem Object-based Solving 4 //===================================== 5 #include"jose.h" 6 #include<iostream> 7 using namespace std; 8 //------------------------------------- 9 int main(){ 10 cout<<"please input boyNum/interNum/startPos:\n"; 11 int n, m, s; 12 cin>>n>>m>>s; 13 Jose(n,m).getWinner(); 14 Jose(n,m,s).getWinner(); 15 system("pause"); 16 }//==================================== 17 18
相关文章: