本帖最后由 jx836202365 于 2015-9-6 23:33 编辑
大家帮我看看代码,我脑子糊涂了.不想浪费时间,大家帮我看看,旁观者清啊
#include<stdio.h>
void caculate(int a,int b,int *jia,int *jian,int *cheng,float *chu){
*jia=a+b;
*jian=a-b;
*cheng=a*b;
*chu=(float)a/b;
}
int main(){
int a=34,b=2;
int *jia;
int *jian;
int *cheng;
float *chu;
caculate(a,b,jia,jian,cheng,chu);
printf("%d\n",*jia);
return 0;
}
|
|