protel工程文件,包括lcd显示电路的sch文件
上传时间: 2013-11-28
上传用户:zycidjl
pickit3, pcb+sch
标签: pickit3
上传时间: 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 /*运动员*/ { char name[20]; int score; /*分数*/ int range; /**/ int item; /*项目*/ }ATH; typedef struct schoolstruct /*学校*/ { int count; /*编号*/ int serial; /**/ int menscore; /*男选手分数*/ int womenscore; /*女选手分数*/ 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输入运动项目序号 (x<=%d):",ntsp); scanf("%d",pafirst); overgame = *pafirst; if ( pafirst != phead ) { for ( pasecond = phead ; pasecond < pafirst ; pasecond ++ ) { if ( overgame == *pasecond ) { printf("\n这个项目已经存在请选择其他的数字\n"); goto Is_Game_DoMain; } } } pafirst = pafirst + 1; if ( overgame > ntsp ) { printf("\n项目不存在"); printf("\n请重新输入"); 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输入序号 of the NO.%d (0<x<=%d): ",i,nsc); scanf("%d",&serial); if ( serial > nsc ) { printf("\n超过学校数目,请重新输入"); 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继续输入运动项目(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号学校的结果成绩:",pfirst->serial); printf("\n\n项目的数目\t学校的名字\t分数"); 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按任意建 进入下一页"); getchar(); pfirst = pfirst->next; } // clrscr(); printf("\n运动会结果:\n\n学校编号\t男运动员成绩\t女运动员成绩\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按任意建结束"); 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("文件已经成功保存\n"); } void main() { system("cls"); printf("\n\t\t\t 运动会分数统计\n"); printf("输入学校数目 (x>= 5):"); scanf("%d",&nsc); printf("输入男选手的项目(x<=20):"); scanf("%d",&msp); printf("输入女选手项目(<=20):"); scanf("%d",&wsp); ntsp = msp + wsp; phead = (int *)calloc(ntsp,sizeof(int)); pafirst = phead; pasecond = phead; input(); calculate(); output(); Save(); }
标签: 源代码
上传时间: 2016-12-28
上传用户:150501
自制大学生AD常用库文件,包含AD的sch\PCB库文件
上传时间: 2020-04-19
上传用户:vinsonone
PROTEL99SE电路设计教程protell技术大全程简明使用手册Protel封装库至Allegro的转化等学习文档资料PROTEL 99 SE特性手册.docPROTEL 99SE 简明使用手册.docProtel for Windows PCB 转 GERBER文件.mhtProtel PCB 转sch全攻略.pdfProtel 原理图-PCB到Cadence的数据转换.mhtProtel99 SE Gerber File 输出说明.mhtPROTEL99SE教程protell技术大全.docProtel到Allegro -CCT格式转换.mhtProtel封装库至Allegro的转化.pdfProtel常见错误.pdfPRTEL99的PCB文件生成GERBER文件流程.mhtW-Protel99SE精彩教程.chm电路设计与制板Protel99入门与提高.pdf
标签: protel99se 电路设计
上传时间: 2021-10-15
上传用户:
HLW8032电路应用参考设计PROTEL99SE设计硬件原理图+PCB文件HLW8032电路应用参考设计(隔离采样).schHLW8032电路应用参考设计(隔离采样).pdfHLW8032电路应用参考设计(非隔离采样).schHLW8032电路应用参考设计(非隔离采样).schPreviewHLW8032电路应用参考设计(非隔离采样).pdfPCB-HLW8012DEMO-V20.Pcb
标签: hlw8032 电路 protel99se 硬件
上传时间: 2021-10-25
上传用户:zhanglei193
ADS1118模块资料热电偶测量文档资料硬件参考设计及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进行精密热电偶测量.pdf模数转换术语词汇表.pdf高速数据转换.pdf
上传时间: 2021-11-03
上传用户:zhaiyawei
全志A33芯片资料A33核心板技术手册硬件参考设计A33开发板CADENCE原理图PADS PCB图文件:A33 brief 20140522.pdfA33 Datasheet release1.0.pdfA33 user manual release 1.0.pdfA33-Core3引脚定义表.pdfA33-Core3核心板外围电路设计参考.pdfA33-Core3核心板硬件手册.pdfA33_Vstar3使用手册VerC.pdf尺寸图底板PCB图开发底板原理图PCB网卡电路参考设计说明.txtA33-Core3引脚图.pdfA33-Vstar-LCD07-10.pdfRER-A33-DVK3-padslogic95.schRER-A33-DVK3-sch.DSNRER-A33-DVK3-sch.pdf第二版改MIPI座子
上传时间: 2021-11-08
上传用户:qdxqdxqdxqdx
GY-291 ADXL345 IICSPI传输数字三轴重力加速度倾斜度模块技术资料+软件驱动源码:ADXL345.pdfADXL345中文PDF.pdfADXL345快速入门AN-1077_cn.pdfAN-1023.pdfCN0133原代码GY-291-sch.jpgGY-291单片机IIC通信程序利用加速度进行倾斜检测AN-1057_cn.pdf加速度与陀螺仪AN-668_cn.pdf微控制器与加速度通信CN0133.pdf提高ADXL345分辨率AN-1063_cn.pdf降低加速度平均功耗AN-378_cn.pdf
标签: 重力加速度
上传时间: 2021-11-09
上传用户:XuVshu
10个Altium Designer经典案例,含原理图+PCB8层板设计 飞思卡尔IMX6 4片DDR3 设计 DSN原理图+PCB;6层板设计 全志H8 VR一体机设计 DSN原理图+PCB;6层板设计 LPC32X0核心板 sch+PCB2层板设计 AT89C52 + RC500 Mifare 读卡器PCB 和原理图;2层板设计 16进11出PLC设计资料,含原理图、PCB、物料单、供应商、物料价格;2层板设计 显示屏板sch+PCB文件;
标签: Altium Designer AD案例
上传时间: 2022-04-09
上传用户:jiabin