上一页 1 ··· 138 139 140 141 142 143 144 145 146 ··· 207 下一页

2011年8月3日

约瑟夫问题

摘要: #include<iostream>using namespace std;typedef struct student{ int data; struct student *next;}node;void JOSEPHUS(int k,int m) //创建单链表{ node *head,*p,*s; int x,cycle=1; head=(node *)malloc(sizeof(node)); p=head; int n=0; while(cycle) { cout<<"请输入一直不为0的数,输入0则结束"<<endl; cin& 阅读全文

posted @ 2011-08-03 14:29 原来... 阅读(334) 评论(0) 推荐(0) 编辑

上一页 1 ··· 138 139 140 141 142 143 144 145 146 ··· 207 下一页

导航