2017年5月11日
摘要:
11.1 11.2 11.3 11.4 11.5 11.6 11.7
阅读全文
posted @ 2017-05-11 12:29
么么打123
阅读(187)
推荐(0)
2017年5月8日
摘要:
1 #include 2 3 #include 4 5 #include 6 7 #include 8 9 10 11 void MidBrehansemCircle(int x, int y, int radius); 12 13 14 15 int main() 16 17 { 18 19 int gd...
阅读全文
posted @ 2017-05-08 01:30
么么打123
阅读(583)
推荐(0)
摘要:
1 #include 2 3 #include 4 5 #include"graphics.h" 6 7 8 9 //函数声明 10 11 void MidBrehansem(int x0, int y0, int x1, int y1); //中点MidBrehansem算法 12 13 void swap(int &x, int ...
阅读全文
posted @ 2017-05-08 01:28
么么打123
阅读(583)
推荐(0)
摘要:
1 #include 2 3 #include"graphics.h" 4 5 #include 6 7 #include 8 9 10 11 void DDALine(int x0, int y0, int x1, int y1); 12 13 14 15 int main() 16 17 { 18 19 int gdriver = DETE...
阅读全文
posted @ 2017-05-08 01:25
么么打123
阅读(2042)
推荐(0)
2017年4月30日
摘要:
9.1 #include<stdio.h>#include<math.h> int main(){ int x,y,z; float c,s; scanf("%d%d%d",&x,&y,&z); c=(x+y+z)/2.0; s=sqrt(c*(c-x)*(c-y)*(c-z)); printf("
阅读全文
posted @ 2017-04-30 21:53
么么打123
阅读(266)
推荐(0)
2017年4月13日
摘要:
#include<stdio.h> int main(){ int a[20],i; a[0]=2; a[1]=5; for(i=2;i<=19;i++) a[i]=2*a[i-1]-a[i-2]+2; for(i=0;i<=19;i++) { printf("%d ",a[i]); if((i+1
阅读全文
posted @ 2017-04-13 12:37
么么打123
阅读(128)
推荐(0)
摘要:
7.1 #include<stdio.h>#include<string.h> int main(){ char a[40]; int i; gets(a); //输入字符串进入数组 for(i=0;i<strlen(a);i++) { if(a[i]>='a'&&a[i]<='z') a[i]-=
阅读全文
posted @ 2017-04-13 00:44
么么打123
阅读(236)
推荐(0)
2017年4月12日
摘要:
8.1 #include<stdio.h> int main(){ int a[5],i,j,k,t,z; //输入5个元素进入数组 for(i=0;i<5;i++) scanf("%d",&a[i]); //冒泡排序算法 for(j=0;j<5;j++) for(k=j;k<5;k++) { if
阅读全文
posted @ 2017-04-12 23:29
么么打123
阅读(157)
推荐(0)
2017年3月15日
摘要:
5.1 #include<stdio.h> int main(){ int i,j; for(i=1;i<=5;i++) { for(j=5-i;j>0;j--) printf(" "); for(j=1;j<=2*i-1;j++) printf("*"); printf("\n"); }} 5.2
阅读全文
posted @ 2017-03-15 10:34
么么打123
阅读(138)
推荐(0)
2017年3月9日
摘要:
4.1 #include<stdio.h> int main(){ int i; for(i=6;i<=100;i+=10) { if(i%3==0) printf("%d ",i); } printf("\n");} 4.2 #include<stdio.h> int main(){ int i=
阅读全文
posted @ 2017-03-09 23:29
么么打123
阅读(206)
推荐(0)