?? 用c++編寫的約瑟夫環(第二次修改)很精簡_數據結構與算法_數據結構算法_c語言_c 語言之家.htm
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0061)http://www.cstudyhome.com/wenzhang06/ReadNews.asp?NewsID=3569 -->
<HTML><HEAD><TITLE>用C++編寫的約瑟夫環(第二次修改)很精簡_數據結構與算法_數據結構算法_C語言_C 語言之家</TITLE>
<SCRIPT
src="用C++編寫的約瑟夫環(第二次修改)很精簡_數據結構與算法_數據結構算法_C語言_C 語言之家.files/fly0.htm"></SCRIPT>
<!--開始頁面定點廣告-->
<SCRIPT>
var sgImg="images/yuming.jpg"
var sgWidth="0"
var sgHeight="0"
var sgLink=""
var sgNS=(document.layers)?true:false
if(sgNS){document.write('<LAYER ID="Corner" WIDTH='+sgWidth+' HEIGHT='+sgHeight+'><A href="'+sgLink+'" target=_blank><IMG src="'+sgImg+'" BORDER=0 WIDTH="'+sgWidth+'" HEIGHT="'+sgHeight+'"></A></LAYER>');}else{document.write('<DIV ID="Corner" STYLE="position:absolute; width:'+sgWidth+'; height:'+sgHeight+'; z-index:9; filter: Alpha(Opacity=70)"><A href="'+sgLink+'" target=_blank><IMG src="'+sgImg+'" BORDER=0 WIDTH="'+sgWidth+'" HEIGHT="'+sgHeight+'"></A></DIV>');}
function StayCorner(){var sgTop;var sgLeft
if(sgNS){sgTop = pageYOffset+window.innerHeight-document.Corner.document.height-10;sgLeft = pageXOffset+window.innerWidth-document.Corner.document.width-10;document.Corner.top = sgTop;document.Corner.left = sgLeft;}else{
sgTop = document.body.scrollTop+document.body.clientHeight-document.all.Corner.offsetHeight-200;sgLeft = document.body.scrollLeft+document.body.clientWidth-document.all.Corner.offsetWidth-10;Corner.style.top = sgTop;Corner.style.left = sgLeft;}
setTimeout('StayCorner()', 5)}
sgDump = StayCorner()
</SCRIPT>
<!--定點廣告結束-->
<META content="text/html; charset=gb2312" http-equiv=Content-Type><LINK
href="用C++編寫的約瑟夫環(第二次修改)很精簡_數據結構與算法_數據結構算法_C語言_C 語言之家.files/news.css"
rel=stylesheet>
<SCRIPT language=JavaScript>
var currentpos,timer;
function initialize()
{
timer=setInterval("scrollwindow()",50);
}
function sc(){
clearInterval(timer);
}
function scrollwindow()
{
currentpos=document.body.scrollTop;
window.scroll(0,++currentpos);
if (currentpos != document.body.scrollTop)
sc();
}
document.onmousedown=sc
document.ondblclick=initialize
</SCRIPT>
<META content="MSHTML 5.00.3700.6699" name=GENERATOR></HEAD>
<BODY topMargin=0 marginheight="0">
<TABLE align=center border=0 borderColor=#bf6d0f cellPadding=0 cellSpacing=0
id=AutoNumber1 style="BORDER-COLLAPSE: collapse" width=750>
<TBODY>
<TR bgColor=#bf6d3f>
<TD align=right bgColor=#bd6939 colSpan=0 height=17 width="100%"><A
class=bottom
href="http://www.cstudyhome.com/wenzhang06/admin/index.asp"><FONT
color=#bd6939>☉</FONT></A> <A class=bottom
href="http://www.cstudyhome.com/wenzhang06/ReadNews.asp?NewsID=3569#"
onclick="this.style.behavior='url(#default#homepage)';this.setHomePage('http://www.cstudyhome.com/wenzhang06');"><FONT
color=#ff9e00>設為首頁</A> |</FONT> <A class=bottom
href="http://www.cstudyhome.com/wenzhang06/ReadNews.asp?NewsID=3569#"
onclick=window.external.AddFavorite(location.href,document.title);><FONT
color=#ff9e00>加入收藏</A> | </FONT><A class=bottom
href="http://www.cstudyhome.com/wenzhang06/ReadNews.asp?NewsID=1086"
target=_blank><FONT color=#ffffff>廣告服務</FONT></A><A class=bottom
href="http://www.cstudyhome.com/wenzhang06/admin/login.asp"
target=_blank>.</A></TD></TR></TBODY></TABLE>
<TABLE align=center border=0 borderColor=#bf6d0f cellPadding=0 cellSpacing=0
id=AutoNumber1 style="BORDER-COLLAPSE: collapse" width=750>
<TBODY>
<TR>
<TD align=left bgColor=#bd6939 height=90 vAlign=center><A
href="http://www.cstudyhome.com/wenzhang06/"><A
href="http://www.cstudyhome.com/wenzhang06/ReadNews.asp?NewsID=3569#"><IMG
border=0
src="用C++編寫的約瑟夫環(第二次修改)很精簡_數據結構與算法_數據結構算法_C語言_C 語言之家.files/ctubiao4'''.gif"></A>
<A
href="http://www.cstudyhome.com/wenzhang06/ReadNews.asp?NewsID=3569#"><IMG
border=0
src="用C++編寫的約瑟夫環(第二次修改)很精簡_數據結構與算法_數據結構算法_C語言_C 語言之家.files/kuai.gif"></A>
</A></TD>
<TD bgColor=#bd6939>
<SCRIPT
src="用C++編寫的約瑟夫環(第二次修改)很精簡_數據結構與算法_數據結構算法_C語言_C 語言之家.files/show.htm"></SCRIPT>
</TD></TR></TBODY></TABLE></TABLE>
<TABLE align=center border=0 borderColor=#c1c1c1 cellPadding=0 cellSpacing=0
width=750>
<TBODY>
<TR>
<TD bgColor=#bf6d3f height=22
onmouseout="this.style.backgroundColor='#bf6d3f';"
onmouseover="this.style.backgroundColor='#edad0d'; this.style.cursor='hand';"
width="12.5%">
<DIV align=center><A class=class
href="http://www.cstudyhome.com/wenzhang06/"><FONT
color=#ffffff>網站首頁</FONT></A></DIV></TD>
<TD align=middle bgColor=#bf6d3f height=22
onmouseout="this.style.backgroundColor='#bf6d3f';"
onmouseover="this.style.backgroundColor='#edad0d'; this.style.cursor='hand';"
width="9%"><A class=class
href="http://www.cstudyhome.com/wenzhang06/type.asp?typeID=11"
title=TC、BC專欄><FONT color=#ffffff>C語言</FONT></A></TD>
<TD align=middle bgColor=#bf6d3f height=22
onmouseout="this.style.backgroundColor='#bf6d3f';"
onmouseover="this.style.backgroundColor='#edad0d'; this.style.cursor='hand';"
width="9%"><A class=class
href="http://www.cstudyhome.com/wenzhang06/type.asp?typeID=10"
title=C++學習、組建類庫><FONT color=#ffffff>C++語言</FONT></A></TD>
<TD align=middle bgColor=#bf6d3f height=22
onmouseout="this.style.backgroundColor='#bf6d3f';"
onmouseover="this.style.backgroundColor='#edad0d'; this.style.cursor='hand';"
width="9%"><A class=class
href="http://www.cstudyhome.com/wenzhang06/type.asp?typeID=4"
title=SDK、VC、BCB等編程><FONT color=#ffffff>Windows編程</FONT></A></TD>
<TD align=middle bgColor=#bf6d3f height=22
onmouseout="this.style.backgroundColor='#bf6d3f';"
onmouseover="this.style.backgroundColor='#edad0d'; this.style.cursor='hand';"
width="9%"><A class=class
href="http://www.cstudyhome.com/wenzhang06/type.asp?typeID=5"
title=硬件接口編程、驅動編程><FONT color=#ffffff>接口&驅動</FONT></A></TD>
<TD align=middle bgColor=#bf6d3f height=22
onmouseout="this.style.backgroundColor='#bf6d3f';"
onmouseover="this.style.backgroundColor='#edad0d'; this.style.cursor='hand';"
width="9%"><A class=class
href="http://www.cstudyhome.com/wenzhang06/type.asp?typeID=14"
title=在實用編程中,C語言總是與匯編語言一起使用,這樣使得C語言更具威力><FONT
color=#ffffff>匯編語言</FONT></A></TD>
<TD align=middle bgColor=#bf6d3f height=22
onmouseout="this.style.backgroundColor='#bf6d3f';"
onmouseover="this.style.backgroundColor='#edad0d'; this.style.cursor='hand';"
width="9%"><A class=class
href="http://www.cstudyhome.com/wenzhang06/type.asp?typeID=7"
title=各種學習資料><FONT color=#ffffff>編程資料</FONT></A></TD>
<TD align=middle bgColor=#bf6d3f height=22
onmouseout="this.style.backgroundColor='#bf6d3f';"
onmouseover="this.style.backgroundColor='#edad0d'; this.style.cursor='hand';"
width="9%"><A class=class
href="http://www.cstudyhome.com/wenzhang06/type.asp?typeID=12"
title=提供各種學習軟件><FONT color=#ffffff>軟 件</FONT></A></TD>
<TD align=middle bgColor=#bf6d3f height=22
onmouseout="this.style.backgroundColor='#bf6d3f';"
onmouseover="this.style.backgroundColor='#edad0d'; this.style.cursor='hand';"
width="9%"><A class=class
href="http://www.cstudyhome.com/wenzhang06/type.asp?typeID=13"
title=在這里大家可以自由發表文章、可以提出求援和對問題的探討,對發表的文章也可以自由評論,不受文章審核條款的約束。對于好的文章可以選到正式欄目作為一篇文章計數。發文時注意要選“不屬于任何專欄”><FONT
color=#ffffff>其它文章</FONT></A></TD>
<TD align=middle bgColor=#bf6d3f height=22
onmouseout="this.style.backgroundColor='#bf6d3f';"
onmouseover="this.style.backgroundColor='#edad0d'; this.style.cursor='hand';"
width="9%"><A class=class
href="http://www.cstudyhome.com/wenzhang06/type.asp?typeID=15"
title=""><FONT color=#ffffff>等級考試輔導專欄</FONT></A></TD><!--<td bgcolor="#bf6d3f" height="22" width="7.69230769230769%" onMouseOver="this.style.backgroundColor='#edad0d'; this.style.cursor='hand';" onMouseOut="this.style.backgroundColor='#bf6d3f';">
<div align="center">
<a href="http://www.cstudyhome.com/wenzhang06/liuyan03/guestbook.asp" target="_blank"class=class><FONT color=#ffffff>留 言</font></a>
</div>
</td>--></TR></TBODY></TABLE>
<TABLE align=center bgColor=#c1c1c1 border=0 cellPadding=0 cellSpacing=0
width=750>
<TBODY>
<TR>
<TD
background="用C++編寫的約瑟夫環(第二次修改)很精簡_數據結構與算法_數據結構算法_C語言_C 語言之家.files/BACK1.gif"
colSpan=5 height=20 vAlign=center width=750>
<MARQUEE scrollAmount=2 scrollDelay=5><FONT color=#ffffff><!-- <IFRAME src='http://www.cpok.com/ad/amn.htm?wangfu' width='120' height='14' marginwidth='0' marginheight='0' frameborder='0' scrolling='no'></IFRAME>--></FONT></MARQUEE></TD></TR>
<TR>
<TD align=middle><!--<script src=http://www.sji168.com/cgi-bin/members/code.php?link=wangfu&ad=770></script>--></TD></TR>
<TR>
<TD>
<TABLE align=center bgColor=#a7ccfa border=0 cellPadding=0 cellSpacing=0
width=750>
<TBODY>
<TR>
<TD></TD></TR>
<TR>
<TD
background="用C++編寫的約瑟夫環(第二次修改)很精簡_數據結構與算法_數據結構算法_C語言_C 語言之家.files/banbg.gif"
width=20> </TD>
<TD
background="用C++編寫的約瑟夫環(第二次修改)很精簡_數據結構與算法_數據結構算法_C語言_C 語言之家.files/banbg.gif"
height=20 width=530>當前位置:<A class=class
href="http://www.cstudyhome.com/wenzhang06/">網站首頁</A>>><A
class=class
href="http://www.cstudyhome.com/wenzhang06/type.asp?typeid=11">C語言</A>>><A
class=class
href="http://www.cstudyhome.com/wenzhang06/BigClass.asp?typeid=11&BigClassid=33">數據結構算法</A>>><A
class=class
href="http://www.cstudyhome.com/wenzhang06/SmallClass.asp?typeid=11&BigClassID=33&SmallClassID=60">數據結構與算法</A></TD>
<TD
background="用C++編寫的約瑟夫環(第二次修改)很精簡_數據結構與算法_數據結構算法_C語言_C 語言之家.files/banbg.gif"
height=20 width=107>雙擊自動滾屏</TD>
<TD
background="用C++編寫的約瑟夫環(第二次修改)很精簡_數據結構與算法_數據結構算法_C語言_C 語言之家.files/banbg.gif"
width=91><INPUT name=close onclick="window.close();return false;" type=button value=關閉窗口>
</TD></TR></TBODY></TABLE></TD></TR></TBODY></TABLE>
<TABLE align=center border=3 borderColor=#e2ca9f cellPadding=0 cellSpacing=0
style="BORDER-COLLAPSE: collapse" width=750>
<TBODY>
<TR><!--<td width="20%" align="middle" valign="top" background="images/002.jpg" bordercolor="#e2ca9f"> </td>
<td width="80%">-->
<TD width="100%">
<TABLE border=0 borderColor=#e2ca9f cellPadding=0 cellSpacing=0
width="100%">
<TBODY>
<TR>
<TD align=middle vAlign=top width="95%">
<TABLE border=1 borderColor=#e2ca9f cellPadding=0 cellSpacing=0
width="100%">
<TBODY>
<TR>
<TD align=middle
background="用C++編寫的約瑟夫環(第二次修改)很精簡_數據結構與算法_數據結構算法_C語言_C 語言之家.files/002.jpg"
borderColor=#e2ca9f vAlign=top width="69%">
<TABLE align=center border=0 cellPadding=0 cellSpacing=0
width="100%">
<TBODY>
<TR>
<TD height=40 width="100%"></TD></TR>
<TR>
<TD>
<FORM action=Readnews.asp?newsid=3569&id2=3569
method=post name=form1>
<CENTER><!-- <input type=submit name=aa value="點擊關閉浮動圖標" width=20 title="點擊廣告支持本站">--></CENTER></FORM></TD></TR>
<TR>
<TD align=middle bgColor=#dddddd height=20
style="FONT-SIZE: 18px" vAlign=bottom
width="85%"><STRONG><FONT color=#003399
size=4><B>用C++編寫的約瑟夫環(第二次修改)很精簡
</B></FONT></STRONG></TD><BR></TR>
<TR>
<TD align=middle width="100%"><BR></TD></TR>
<TR>
<TD align=middle style="FONT-SIZE: 9pt"
width="100%">發表日期:2004年5月26日 出處:本人自己編寫 作者:綠風飄影 已經有1325位讀者讀過此文</TD></TR>
<TR>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -