protel工程文件,包括lcd顯示電路的Sch文件
上傳時(shí)間: 2013-11-28
上傳用戶:zycidjl
pickit3, pcb+Sch
標(biāo)簽: pickit3
上傳時(shí)間: 2015-07-03
上傳用戶:zhushen
#include <malloc.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #define NULL 0 #define MaxSize 30 typedef struct athletestruct /*運(yùn)動(dòng)員*/ { char name[20]; int score; /*分?jǐn)?shù)*/ int range; /**/ int item; /*項(xiàng)目*/ }ATH; typedef struct Schoolstruct /*學(xué)校*/ { int count; /*編號(hào)*/ int serial; /**/ int menscore; /*男選手分?jǐn)?shù)*/ int womenscore; /*女選手分?jǐn)?shù)*/ int totalscore; /*總分*/ ATH athlete[MaxSize]; /**/ struct Schoolstruct *next; }Sch; int nsc,msp,wsp; int ntsp; int i,j; int overgame; int serial,range; int n; Sch *head,*pfirst,*psecond; int *phead=NULL,*pafirst=NULL,*pasecond=NULL; void create(); void input () { char answer; head = (Sch *)malloc(sizeof(Sch)); /**/ head->next = NULL; pfirst = head; answer = 'y'; while ( answer == 'y' ) { Is_Game_DoMain: printf("\nGET Top 5 when odd\nGET Top 3 when even"); printf("\n輸入運(yùn)動(dòng)項(xiàng)目序號(hào) (x<=%d):",ntsp); scanf("%d",pafirst); overgame = *pafirst; if ( pafirst != phead ) { for ( pasecond = phead ; pasecond < pafirst ; pasecond ++ ) { if ( overgame == *pasecond ) { printf("\n這個(gè)項(xiàng)目已經(jīng)存在請(qǐng)選擇其他的數(shù)字\n"); goto Is_Game_DoMain; } } } pafirst = pafirst + 1; if ( overgame > ntsp ) { printf("\n項(xiàng)目不存在"); printf("\n請(qǐng)重新輸入"); goto Is_Game_DoMain; } switch ( overgame%2 ) { case 0: n = 3;break; case 1: n = 5;break; } for ( i = 1 ; i <= n ; i++ ) { Is_Serial_DoMain: printf("\n輸入序號(hào) of the NO.%d (0<x<=%d): ",i,nsc); scanf("%d",&serial); if ( serial > nsc ) { printf("\n超過(guò)學(xué)校數(shù)目,請(qǐng)重新輸入"); goto Is_Serial_DoMain; } if ( head->next == NULL ) { create(); } psecond = head->next ; while ( psecond != NULL ) { if ( psecond->serial == serial ) { pfirst = psecond; pfirst->count = pfirst->count + 1; goto Store_Data; } else { psecond = psecond->next; } } create(); Store_Data: pfirst->athlete[pfirst->count].item = overgame; pfirst->athlete[pfirst->count].range = i; pfirst->serial = serial; printf("Input name:) : "); scanf("%s",pfirst->athlete[pfirst->count].name); } printf("\n繼續(xù)輸入運(yùn)動(dòng)項(xiàng)目(y&n)?"); answer = getchar(); printf("\n"); } } void calculate() /**/ { pfirst = head->next; while ( pfirst->next != NULL ) { for (i=1;i<=pfirst->count;i++) { if ( pfirst->athlete[i].item % 2 == 0 ) { switch (pfirst->athlete[i].range) { case 1:pfirst->athlete[i].score = 5;break; case 2:pfirst->athlete[i].score = 3;break; case 3:pfirst->athlete[i].score = 2;break; } } else { switch (pfirst->athlete[i].range) { case 1:pfirst->athlete[i].score = 7;break; case 2:pfirst->athlete[i].score = 5;break; case 3:pfirst->athlete[i].score = 3;break; case 4:pfirst->athlete[i].score = 2;break; case 5:pfirst->athlete[i].score = 1;break; } } if ( pfirst->athlete[i].item <=msp ) { pfirst->menscore = pfirst->menscore + pfirst->athlete[i].score; } else { pfirst->womenscore = pfirst->womenscore + pfirst->athlete[i].score; } } pfirst->totalscore = pfirst->menscore + pfirst->womenscore; pfirst = pfirst->next; } } void output() { pfirst = head->next; psecond = head->next; while ( pfirst->next != NULL ) { // clrscr(); printf("\n第%d號(hào)學(xué)校的結(jié)果成績(jī):",pfirst->serial); printf("\n\n項(xiàng)目的數(shù)目\t學(xué)校的名字\t分?jǐn)?shù)"); for (i=1;i<=ntsp;i++) { for (j=1;j<=pfirst->count;j++) { if ( pfirst->athlete[j].item == i ) { printf("\n %d\t\t\t\t\t\t%s\n %d",i,pfirst->athlete[j].name,pfirst->athlete[j].score);break; } } } printf("\n\n\n\t\t\t\t\t\t按任意建 進(jìn)入下一頁(yè)"); getchar(); pfirst = pfirst->next; } // clrscr(); printf("\n運(yùn)動(dòng)會(huì)結(jié)果:\n\n學(xué)校編號(hào)\t男運(yùn)動(dòng)員成績(jī)\t女運(yùn)動(dòng)員成績(jī)\t總分"); pfirst = head->next; while ( pfirst->next != NULL ) { printf("\n %d\t\t %d\t\t %d\t\t %d",pfirst->serial,pfirst->menscore,pfirst->womenscore,pfirst->totalscore); pfirst = pfirst->next; } printf("\n\n\n\t\t\t\t\t\t\t按任意建結(jié)束"); getchar(); } void create() { pfirst = (struct Schoolstruct *)malloc(sizeof(struct Schoolstruct)); pfirst->next = head->next ; head->next = pfirst ; pfirst->count = 1; pfirst->menscore = 0; pfirst->womenscore = 0; pfirst->totalscore = 0; } void Save() {FILE *fp; if((fp = fopen("School.dat","wb"))==NULL) {printf("can't open School.dat\n"); fclose(fp); return; } fwrite(pfirst,sizeof(Sch),10,fp); fclose(fp); printf("文件已經(jīng)成功保存\n"); } void main() { system("cls"); printf("\n\t\t\t 運(yùn)動(dòng)會(huì)分?jǐn)?shù)統(tǒng)計(jì)\n"); printf("輸入學(xué)校數(shù)目 (x>= 5):"); scanf("%d",&nsc); printf("輸入男選手的項(xiàng)目(x<=20):"); scanf("%d",&msp); printf("輸入女選手項(xiàng)目(<=20):"); scanf("%d",&wsp); ntsp = msp + wsp; phead = (int *)calloc(ntsp,sizeof(int)); pafirst = phead; pasecond = phead; input(); calculate(); output(); Save(); }
標(biāo)簽: 源代碼
上傳時(shí)間: 2016-12-28
上傳用戶:150501
自制大學(xué)生AD常用庫(kù)文件,包含AD的Sch\PCB庫(kù)文件
上傳時(shí)間: 2020-04-19
上傳用戶:vinsonone
PROTEL99SE電路設(shè)計(jì)教程protell技術(shù)大全程簡(jiǎn)明使用手冊(cè)Protel封裝庫(kù)至Allegro的轉(zhuǎn)化等學(xué)習(xí)文檔資料PROTEL 99 SE特性手冊(cè).docPROTEL 99SE 簡(jiǎn)明使用手冊(cè).docProtel for Windows PCB 轉(zhuǎn) GERBER文件.mhtProtel PCB 轉(zhuǎn)Sch全攻略.pdfProtel 原理圖-PCB到Cadence的數(shù)據(jù)轉(zhuǎn)換.mhtProtel99 SE Gerber File 輸出說(shuō)明.mhtPROTEL99SE教程protell技術(shù)大全.docProtel到Allegro -CCT格式轉(zhuǎn)換.mhtProtel封裝庫(kù)至Allegro的轉(zhuǎn)化.pdfProtel常見(jiàn)錯(cuò)誤.pdfPRTEL99的PCB文件生成GERBER文件流程.mhtW-Protel99SE精彩教程.chm電路設(shè)計(jì)與制板Protel99入門與提高.pdf
標(biāo)簽: protel99se 電路設(shè)計(jì)
上傳時(shí)間: 2021-10-15
上傳用戶:
HLW8032電路應(yīng)用參考設(shè)計(jì)PROTEL99SE設(shè)計(jì)硬件原理圖+PCB文件HLW8032電路應(yīng)用參考設(shè)計(jì)(隔離采樣).SchHLW8032電路應(yīng)用參考設(shè)計(jì)(隔離采樣).pdfHLW8032電路應(yīng)用參考設(shè)計(jì)(非隔離采樣).SchHLW8032電路應(yīng)用參考設(shè)計(jì)(非隔離采樣).SchPreviewHLW8032電路應(yīng)用參考設(shè)計(jì)(非隔離采樣).pdfPCB-HLW8012DEMO-V20.Pcb
標(biāo)簽: hlw8032 電路 protel99se 硬件
上傳時(shí)間: 2021-10-25
上傳用戶:zhanglei193
ADS1118模塊資料熱電偶測(cè)量文檔資料硬件參考設(shè)計(jì)及MSP430軟JDEMO代碼:430BOOST-ADS1118 Booster Pack.pdfADS1118-english.pdfads1118.pdfCJMCU-1118資料IMP NOTICE for REF DESIGNS.pdfMSP430-ADS1118PCBPrecision Thermocouple Measurement with the ADS1118.pdfSch and BOMTemperature Sensing.pdf使用ADS1118進(jìn)行精密熱電偶測(cè)量.pdf模數(shù)轉(zhuǎn)換術(shù)語(yǔ)詞匯表.pdf高速數(shù)據(jù)轉(zhuǎn)換.pdf
標(biāo)簽: ads1118 熱電偶 測(cè)量 硬件
上傳時(shí)間: 2021-11-03
上傳用戶:zhaiyawei
全志A33芯片資料A33核心板技術(shù)手冊(cè)硬件參考設(shè)計(jì)A33開(kāi)發(fā)板CADENCE原理圖PADS PCB圖文件:A33 brief 20140522.pdfA33 Datasheet release1.0.pdfA33 user manual release 1.0.pdfA33-Core3引腳定義表.pdfA33-Core3核心板外圍電路設(shè)計(jì)參考.pdfA33-Core3核心板硬件手冊(cè).pdfA33_Vstar3使用手冊(cè)VerC.pdf尺寸圖底板PCB圖開(kāi)發(fā)底板原理圖PCB網(wǎng)卡電路參考設(shè)計(jì)說(shuō)明.txtA33-Core3引腳圖.pdfA33-Vstar-LCD07-10.pdfRER-A33-DVK3-padslogic95.SchRER-A33-DVK3-Sch.DSNRER-A33-DVK3-Sch.pdf第二版改MIPI座子
上傳時(shí)間: 2021-11-08
上傳用戶:qdxqdxqdxqdx
GY-291 ADXL345 IICSPI傳輸數(shù)字三軸重力加速度傾斜度模塊技術(shù)資料+軟件驅(qū)動(dòng)源碼:ADXL345.pdfADXL345中文PDF.pdfADXL345快速入門AN-1077_cn.pdfAN-1023.pdfCN0133原代碼GY-291-Sch.jpgGY-291單片機(jī)IIC通信程序利用加速度進(jìn)行傾斜檢測(cè)AN-1057_cn.pdf加速度與陀螺儀AN-668_cn.pdf微控制器與加速度通信CN0133.pdf提高ADXL345分辨率AN-1063_cn.pdf降低加速度平均功耗AN-378_cn.pdf
標(biāo)簽: 重力加速度
上傳時(shí)間: 2021-11-09
上傳用戶:XuVshu
10個(gè)Altium Designer經(jīng)典案例,含原理圖+PCB8層板設(shè)計(jì) 飛思卡爾IMX6 4片DDR3 設(shè)計(jì) DSN原理圖+PCB;6層板設(shè)計(jì) 全志H8 VR一體機(jī)設(shè)計(jì) DSN原理圖+PCB;6層板設(shè)計(jì) LPC32X0核心板 Sch+PCB2層板設(shè)計(jì) AT89C52 + RC500 Mifare 讀卡器PCB 和原理圖;2層板設(shè)計(jì) 16進(jìn)11出PLC設(shè)計(jì)資料,含原理圖、PCB、物料單、供應(yīng)商、物料價(jià)格;2層板設(shè)計(jì) 顯示屏板Sch+PCB文件;
標(biāo)簽: Altium Designer AD案例
上傳時(shí)間: 2022-04-09
上傳用戶:jiabin
蟲蟲下載站版權(quán)所有 京ICP備2021023401號(hào)-1