摘要: 1 #include <stdio.h> 2 int main() 3 { 4 int i=0,a[10]={0},s=0; 5 char *p,*q; 6 char str[100]={0}; 7 gets(str); 8 p=&str[0]; 9 for(;*p!='\0';p++)10 {11 if(*p>='0'&&*p<='9')12 {13 for(q=p;*q>='0'&&*q<='9';q++)14 {15 s=s*10+( 阅读全文
posted @ 2012-07-31 23:18 blue—— 阅读(183) 评论(0) 推荐(0)
摘要: 1 #include <stdio.h> 2 #include <stdlib.h> 3 void fun(double); 4 double c,m,n; 5 6 void chage(double m,double n) 7 { 8 if(m>n) 9 printf("<0\n");10 else11 { 12 c=n-m;13 printf("%.2lf=",n-m);14 fun(50);15 fun(20);16 fun(10);17 fun(5);18 ... 阅读全文
posted @ 2012-07-31 22:05 blue—— 阅读(257) 评论(0) 推荐(0)