2013年4月6日
摘要: // 卡片排序(冒泡算法)function SortCards( %cards ){ %changed = true; while( %changed ) { %changed = false; for( %index = 0; %index < getWordCount( %cards ) - 1; %index++ ) { %card = getWord( %cards, %index ); %cardNext = getWord( %cards, %index + 1 ); ... 阅读全文
posted @ 2013-04-06 10:25 Kevin Game 阅读(168) 评论(0) 推荐(0) 编辑