摘要:
#include float cash; int main(void) { int choice; float value; void income(float number),expend(float number);cash=0; printf("Enter operate choice(0--end,1--income,2--expend):"); scanf("%d",&choice); while(choice!=0){ if(choice==1||choice==2){ printf("Enter cash value:&q 阅读全文
posted @ 2013-10-07 09:40
dihuanting
阅读(105)
评论(0)
推荐(0)
摘要:
int x; int f(); int main(void) { int a=1;x=a; a=f(); { int b=2; b=a+b; x=x+b;} printf("%d%d",a,x);return 0; }int f() { int x=4;return x; } 阅读全文
posted @ 2013-10-07 09:13
dihuanting
阅读(127)
评论(0)
推荐(0)
摘要:
#include float result_real,result_imag;int main(void) { float imag1,imag2,real1,real2;void complex_prod(float real1,float imag1,float real2,float imag2); void complex_add(float real1,float imag1,float real2,float imag2);printf("Enter 1st complex number(real and imaginary):"); scanf("% 阅读全文
posted @ 2013-10-07 09:05
dihuanting
阅读(122)
评论(0)
推荐(0)