头很晕,又是指针问题!
#include <stdio.h>#include <math.h>
#define PI 3.12222
void main()
{
int a, b, c, *p1, *p2;
a=100;
b=200;
c=a+b;
p1=&a;
printf("%d",*p1);
p1=&b;
printf("\n%d",*p1);
c=*p1*PI;
p2=&c;
printf("\n%d",*p2);
}
c=*p1*PI; 这行* 他怎么能分是乘还是指针啊????