亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

蟲蟲首頁| 資源下載| 資源專輯| 精品軟件
登錄| 注冊

生產(chǎn)(chǎn)廠(chǎng)

  • 一、問題描述若要在n個城市之間建役通信網(wǎng)絡(luò)

    一、問題描述若要在n個城市之間建役通信網(wǎng)絡(luò),只福要架設(shè)n-1條級路即可.如何以最低的經(jīng)濟代價建設(shè)這個通信網(wǎng),是一個網(wǎng)的最小生成樹問題。二、基本要求 (1)利用克魯斯卡爾算法求圖的最小生成樹。 (2)能實現(xiàn)教科書6.5節(jié)中定義的抽象數(shù)據(jù)類型MFSet.以此表示構(gòu)造生成樹過程中的連通分量。 (3 ) 以文本形式輸出生成樹中各條邊以及他們的權(quán)值.三、需求分析 1、構(gòu)造圖結(jié)構(gòu)。 2、利用克魯斯卡爾算法求圖的最小生成樹。 3、完成生成樹的輸出。

    標(biāo)簽: 城市 通信網(wǎng)絡(luò)

    上傳時間: 2017-08-24

    上傳用戶:wlcaption

  • 學(xué)生成績查詢

    #include "string.h" #include "ctype.h" #include "stdio.h" search(char pd[]) {FILE *fp; int time=0,i=0,j=0,add[80],k=0,m; char *ch, str[900]; m=strlen(pd); if((fp=fopen("haha.txt","r"))==NULL) { printf("Cannot open this file\n"); exit(0); } for(;!feof(fp);i++) { str[i]=fgetc(fp); if(tolower(str[i])==tolower(pd[k])) {k++; if(k==m) if(!isalpha(i-m)&&!isalpha((str[i++]=fgetc(fp)))) { time++; add[j]=i-m+1; j++; k=0; } else k=0; } } if(time) { printf("The time is:%d\n",time); printf("The adders is:\n"); for(i=0;i

    標(biāo)簽: 查詢學(xué)會少年宮

    上傳時間: 2016-12-29

    上傳用戶:767483511

  • 學(xué)生成績管理啊

    #include "string.h" #include "ctype.h" #include "stdio.h" search(char pd[]) {FILE *fp;  int time=0,i=0,j=0,add[80],k=0,m;  char *ch,  str[900];  m=strlen(pd);  if((fp=fopen("haha.txt","r"))==NULL)  {   printf("Cannot open this file\n");   exit(0);  } for(;!feof(fp);i++)  {  str[i]=fgetc(fp);   if(tolower(str[i])==tolower(pd[k]))    {k++;     if(k==m)     if(!isalpha(i-m)&&!isalpha((str[i++]=fgetc(fp))))     {      time++;      add[j]=i-m+1;      j++;      k=0;     }     else k=0;   }  }   if(time)  {   printf("The time is:%d\n",time);   printf("The adders is:\n");   for(i=0;i<j;i++)   printf("%5d",add[i]);   if(i%5==0)   printf("\n");   getch();   fclose(fp);   }   else   printf("Sorry!Cannot find the word(^_^)"); } main() { char pd[10],choose='y'; int flag=1;     while(flag)    {printf("In put the word you want to seqarch:");     scanf("%s",pd);     search(strlwr(pd));     printf("\nWould you want to continue?(Y/N):");     getchar();     scanf("%c",&choose);     if((tolower(choose))=='n')     flag=0;     else flag=1;    }   printf("Thanks for your using!Bye-bye!\n");   getch(); }

    標(biāo)簽: 學(xué)生專用

    上傳時間: 2016-12-29

    上傳用戶:767483511

  • 數(shù)組子系統(tǒng)

    #include <stdio.h> #include <stdlib.h> #define SMAX 100 typedef struct SPNode { int i,j,v; }SPNode; struct sparmatrix { int rows,cols,terms; SPNode data [SMAX]; }; sparmatrix CreateSparmatrix() { sparmatrix A; printf("\n\t\t請輸入稀疏矩陣的行數(shù),列數(shù)和非零元素個數(shù)(用逗號隔開):"); scanf("%d,%d,%d",&A.cols,&A.terms); for(int n=0;n<=A.terms-1;n++) { printf("\n\t\t輸入非零元素值(格式:行號,列號,值):"); scanf("%d,%d,%d",&A.data[n].i,&A.data[n].j,&A.data[n].v); } return A; } void ShowSparmatrix(sparmatrix A) { int k; printf("\n\t\t"); for(int x=0;x<=A.rows-1;x++) { for(int y=0;y<=A.cols-1;y++) { k=0; for(int n=0;n<=A.terms-1;n++) { if((A.data[n].i-1==x)&&(A.data[n].j-1==y)) { printf("%8d",A.data[n].v); k=1; } } if(k==0) printf("%8d",k); } printf("\n\t\t"); } } void sumsparmatrix(sparmatrix A) { SPNode *p; p=(SPNode*)malloc(sizeof(SPNode)); p->v=0; int k; k=0; printf("\n\t\t"); for(int x=0;x<=A.rows-1;x++) { for(int y=0;y<=A.cols-1;y++) { for(int n=0;n<=A.terms;n++) { if((A.data[n].i==x)&&(A.data[n].j==y)&&(x==y)) { p->v=p->v+A.data[n].v; k=1; } } } printf("\n\t\t"); } if(k==1) printf("\n\t\t對角線元素的和::%d\n",p->v); else printf("\n\t\t對角線元素的和為::0"); } int main() { int ch=1,choice; struct sparmatrix A; A.terms=0; while(ch) { printf("\n"); printf("\n\t\t      稀疏矩陣的三元組系統(tǒng)       "); printf("\n\t\t*********************************"); printf("\n\t\t      1------------創(chuàng)建          "); printf("\n\t\t      2------------顯示          "); printf("\n\t\t      3------------求對角線元素和"); printf("\n\t\t      4------------返回          "); printf("\n\t\t*********************************"); printf("\n\t\t請選擇菜單號(0-3):"); scanf("%d",&choice); switch(choice) { case 1: A=CreateSparmatrix(); break; case 2: ShowSparmatrix(A); break; case 3: SumSparmatrix(A); break; default: system("cls"); printf("\n\t\t輸入錯誤!請重新輸入!\n"); break; } if (choice==1||choice==2||choice==3) { printf("\n\t\t"); system("pause"); system("cls"); } else system("cls"); } }

    標(biāo)簽: 數(shù)組 子系統(tǒng)

    上傳時間: 2020-06-11

    上傳用戶:ccccy

  • 8205A8_2.0.pdf規(guī)格書下載

    The PW8205A8TS is the highest performance trench N-ch MOSFETs with extreme high cell density,which provide excellent RDSON and gate charge for most of the small power switching and loadswitch applications. The meet the RoHS and Product requirement with full function reliabilityapproved .

    標(biāo)簽: 8205a8

    上傳時間: 2022-02-14

    上傳用戶:wangshoupeng199

  • 艾默生 模塊電源的并聯(lián)均流技術(shù)

    艾默生 模塊電源的并聯(lián)均流技術(shù):n一,概述 n二,常用并聯(lián)均流技術(shù) n三,應(yīng)用實例 n四,注意事項

    標(biāo)簽: 模塊電源 并聯(lián)均流

    上傳時間: 2022-07-26

    上傳用戶:

  • 糾錯編碼技術(shù)和應(yīng)用 歸紹生

    糾錯編碼技術(shù)和應(yīng)用 歸紹生

    標(biāo)簽: 糾錯 編碼技術(shù)

    上傳時間: 2013-06-19

    上傳用戶:eeworm

  • 浙江春生電子接插件開關(guān)產(chǎn)品樣本 pdf版

    浙江春生電子接插件開關(guān)產(chǎn)品樣本 pdf版

    標(biāo)簽: 電子 插件 開關(guān)

    上傳時間: 2013-04-15

    上傳用戶:eeworm

  • 世界電子生廠商商標(biāo)

    世界電子生廠商商標(biāo)

    標(biāo)簽: 電子 廠商商標(biāo)

    上傳時間: 2013-04-15

    上傳用戶:eeworm

  • N系列射頻同軸連接器

    N系列射頻同軸連接器

    標(biāo)簽: 射頻 同軸連接器

    上傳時間: 2013-06-29

    上傳用戶:eeworm

主站蜘蛛池模板: 博罗县| 江西省| 扎赉特旗| 寿宁县| 康保县| 兴业县| 白朗县| 阳曲县| 隆昌县| 秀山| 龙州县| 建昌县| 万荣县| 尼木县| 鄂州市| 清河县| 东平县| 长武县| 天气| 平潭县| 县级市| 吴忠市| 微山县| 上蔡县| 赣州市| 渑池县| 厦门市| 娱乐| 元阳县| 封丘县| 乌兰浩特市| 大洼县| 宿州市| 乌兰浩特市| 尉氏县| 甘肃省| 女性| 抚宁县| 呼玛县| 三原县| 沙洋县|