2012年2月28日
摘要: http://wenku.baidu.com/view/eeba0048f7ec4afe04a1df86.html 阅读全文
posted @ 2012-02-28 20:37 C's 阅读(1921) 评论(0) 推荐(0)
摘要: Plastics are materials which are softened by heat and set into lasting form when shaped in a mold. Some are natural; some are semi-synthetic, the result of chemical action on a natural substance; some are synthetic, built up from the constituents of oil or coal. All are based on the chemistry of car 阅读全文
posted @ 2012-02-28 20:25 C's 阅读(575) 评论(0) 推荐(0)
摘要: For an increasing number of students at American universities, Old is suddenly in. The reason is obvious: the graying of America means jobs. Coupled with the aging of the baby-boom generation, a longer life span means that the nation's elderly population is bound to expand significantly over the 阅读全文
posted @ 2012-02-28 20:17 C's 阅读(364) 评论(0) 推荐(0)
摘要: 1`http://wypt.nit.net.cn:8085/jasinda/zycommons/dowork.do?id=20071124152447109&workType=read&ccId=1260246749781B) gerontology has suddenly become popular2`http://wypt.nit.net.cn:8085/jasinda/zycommons/dowork.do?id=20071124144217203&workType=read&ccId=1260246749781When you close your 阅读全文
posted @ 2012-02-28 19:41 C's 阅读(659) 评论(0) 推荐(0)
  2012年2月24日
摘要: View Code #include<stdio.h>#include<string.h>#define max 100int func(char x[]){ int h,a,xlen=strlen(x); a=xlen-1; for(h=0;a>=0;a--) { h=h+x[a]-'0';//x[a]不加‘’ } return h;}void main(){ char x[max]; while(scanf("%s",x)!=EOF) { printf("%d\n",func(x)); }} 阅读全文
posted @ 2012-02-24 11:22 C's 阅读(123) 评论(0) 推荐(0)
摘要: View Code #include<stdio.h>#include<string.h>#define MAX 100int func(char s[]){ int flag=1; int i,j,slen=strlen(s); for(i=0,j=slen-1;i<j;i++,j--) if(s[i]!=s[j]) { flag=0; break; } return flag;}void main(){ char s[MAX]; while(scanf("%s"... 阅读全文
posted @ 2012-02-24 11:08 C's 阅读(153) 评论(0) 推荐(0)
  2012年2月22日
摘要: 7用选择法对10个整数从小到大排序。 main() { int i.j.a[10++]={2,4,6,1,7,3,5,8,9,4},t; for(j=1;j<10;j++) for(i=0;i<=9-j;i++) if(a[i]>a[i+l]) {t=a[i+1];a[i+l]=a[i];a[i]=t;} for(i=0;i<10;j++) printf("%5d",a[i]); } 8求一个3×3矩阵对角线元素之和。 Main() {int i=0,j=0,a[3][3]= {2,4,6,1,7,3,5,8,9,4},s1,s2; for 阅读全文
posted @ 2012-02-22 20:19 C's 阅读(236) 评论(0) 推荐(0)
摘要: View Code /*5打印出所有"水仙花数",所谓"水仙花数"是指一个三位数,其各位数字立方和等于该本身。例如:153是一个水仙花数,因为153=1^3+5^3+3^3。 #include"math.h" main() {int x=100:a,b,c; while(x>=100&x<1000) {a=0.01*x;b=10*(0.01*x-a);c=x-100*a-10*b; if(x==(pow(a,3)+pow(b,3)+pow(c,3))) Printf("%5d",x);x++; 阅读全文
posted @ 2012-02-22 20:18 C's 阅读(142) 评论(0) 推荐(0)
摘要: View Code /*4 求 ,(即求1!+2!+3!+4!+5!+…+20!) main() {int m,i=1;l0ng Sum=0,s=1; scanf("%d",&n); while(i<=n) {s=s*i(;sum=sum+)s;i++;} printf("sum=%ld\n",sum); } */#include<stdio.h>int main() { int n,i,j=1;long sum=0,s; scanf("%d",&n); while(j<=n) { for(i= 阅读全文
posted @ 2012-02-22 20:18 C's 阅读(117) 评论(0) 推荐(0)
摘要: View Code /*3求Sn=a+aa+aaa+…+aa…aaa(有n个a)之值,其中a是一个数字。例如:2+22+222+2222+22222(n=5),n由键盘输入。 #include"stdi0.h" #include"math.h" main(); {int n,sum==0;i=1,s=2; scanf("%d",n); while(i<==n) {sum=sum+s;s=s+2*pow(10,i); i++;} printf("sum=%d\n",sum); } 改:*/#include< 阅读全文
posted @ 2012-02-22 20:17 C's 阅读(158) 评论(0) 推荐(0)