文章搜素 最終版

2022-05-17 23:36:59 字數 797 閱讀 2866

順序有些亂,是我沒來的及更新。寫完初始版本後感覺速度實在是慢,就把開始版本中複雜的資料交換

temp=p1->num;

p1->num=p->num;

p->num=temp;

s=p1->word;

p1->word=p->word;

p->word=s;

去掉了,新的**是

//

刪除了複雜的資料交換

#include#include

#include

using

namespace

std;

typedef

struct

wordswords,*linklist;

int initlist_l(linklist &l)

void

paixu(linklist l)

p=p->next;}

cout.width(

10);

cout

"p1->num=0

;

}}int

main()

linklist p,s,q;

while(fin>>w)

p=p->next;

q=q->next;}

if(a==0

)

}paixu(l);

return0;

}

即,採用冒泡法,找出前十名,無需複雜資料交換,另外還增加了按檔名讀檔案以及讀取錯誤處理等功能

排序最終版

簡單排序 public static void selectionsort int number public static void injectionsort int number number i 1 tmp public static void bubblesort int number 快...

遊戲盒子接球最終版

有幾個小地方做了改進,倒計時呼叫系統函式gettickcount 來進行計算的,更加方便,其他還有一些地方做出了優化,大家可以自己對比了看一下。這裡還要感謝楊偉大哥提出的寶貴建議。如下 程式名稱 盒子接球 乙個簡單的小遊戲 編譯環境 visual c 6.0,easyx 2013霜降版 作 者 聖石...

安裝TFS2008最終版

一 安裝作業系統 windows server 2003 sp2 具體步驟 1 安裝windows server 2003時選用工作組 預設為workgroup 由於在工作組環境中部署,因此使用tfs單伺服器部署,可以使用 本地帳戶 2 50g空間,ntfs格式。3 安裝iis6.0。在安裝iis的...