预览加载中,请您耐心等待几秒...
1/10
2/10
3/10
4/10
5/10
6/10
7/10
8/10
9/10
10/10

亲,该文档总共26页,到这已经超出免费预览范围,如果喜欢就直接下载吧~

如果您无法下载资料,请参考说明:

1、部分资料下载需要金币,请确保您的账户上有足够的金币

2、已购买过的文档,再次下载不重复扣费

3、资料包下载后请先用软件解压,在使用对应软件打开

C语言日历显示专业课程设计报告含源代码ofruraldrinkingwatersources,protectionofdrinkingwatersourcesinruralareasbytheendofthedelimitationofthescopeofprotection,completewithwarningsigns,isolatingnetworkprotectionfacilitiesofruraldrinkingwatersources,protectionofdrinkingwatersourcesinruralareasbytheendofthedelimitationofthescopeofprotection,completewithwarningsigns,isolatingnetworkprotectionfacilitiesofruraldrinkingwatersources,protectionofdrinkingwatersourcesinruralareasbytheendofthedelimitationofthescopeofprotection,completewithwarningsigns,isolatingnetworkprotectionfacilities高级语言程序设计课程设计题目:专业计算机类班级计算机类1102学生学号指导教师_______________起止时间2012.2.13——2012.2.172012年2月目录TOC\o"1-3"\h\z\uHYPERLINK\l"_Toc317256630"实验报告PAGEREF_Toc317256630\h3HYPERLINK\l"_Toc317256631"必做题:PAGEREF_Toc317256631\h3HYPERLINK\l"_Toc317256632"选做题:PAGEREF_Toc317256632\h8HYPERLINK\l"_Toc317256633"题目10写一个日历显示程序PAGEREF_Toc317256633\h8HYPERLINK\l"_Toc317256634"流程图:(如下)PAGEREF_Toc317256634\h14HYPERLINK\l"_Toc317256635"工程代码:PAGEREF_Toc317256635\h19HYPERLINK\l"_Toc317256636"心得体会PAGEREF_Toc317256636\h24实验报告必做题:(1)编一程序对2种排序方法进行比较:交换法、选择法、插入法、冒泡法四种方法选2。具体比较方法是随机生成一组(≥300个)的100以内的整数数据,用选定的2种排序方法进行排序。纪录排序过程中数据比较和交换的次数,输出比较结果。#include<stdio.h>#include<stdlib.h>intmain(void){inta[300],b[300];inti,j,temp,t;ints=0,p=0,s1=0,p1=0;for(i=0;i<300;i++){a[i]=rand()%100;b[i]=a[i];}for(i=0;i<299;i++){for(j=i+1;j<300;j++){if(a[i]<a[j]){temp=a[i];a[i]=a[j];a[j]=temp;s++;}p++;}}printf("%d%d\n",s,p);printf("\n");for(i=0;i<29