我编了一个函数,但是老是提示我有2个错误,6个警告,请高手帮我稍微改动一下,谢谢
#include <math.h>
void main()
{double T,pA,pB,y;
double x1=0.20,xA=0,p=106.7;
printf("Input T=");
scanf("%f",&T);
while(xA!=x1)
{pA=10^(6.031-1211/(T+220.8));
pB=10^(6.083-1345/(T+219.5));
xA=(p-pA)/(pA-pB);
T=T+0.01;}
y=pA*x1/p;
printf("T=%fpA=%fpB=%f\n",T,pA,pB);
printf("y=%\n",y);
}