我写的C++程序错误很多不会修改
由于才接触C++对编程一点都不懂,最近要写一个程序,但是写完后有很多错误,求大神帮忙改一下,,谢谢,谢谢,谢谢,谢谢#include<math.h>
#include<stdio.h>
main()
{
double s,h,p,p1,p0,a,v,w,p2;
w=215*3.14/30,h=30,p0=90,p1=90,p=0,p2=190;
for(p=0;p<=190;p=p+5)
if(0<=p&p<=45);
{s=2*h*P*P/p0*p0,v=4*h*w*p/p0*p0,a=4*h*w*w/p0*p0;}
else
{if(45<p&<=90)
{s=(h-2*h*(p0-p)*(p0-p))/po*p0,v=4*h*w*(p0-p)/p0*p0,a=-4*h*w*w/p0*p0;}}
else
{if(100<p&P<=145)
{s=(h-2*h*(p-100))/p0*p0,v=-4*h*w*(p-100)/p0*p0,a=-4*h*w*w/p0*p0;}}
else
{if(145<p&p<=190)
{s=2*h*(p2-p)*(p2-p)/p0*p0,v=-4*h*w*(p2-p)/p0*p0,a=4*h*w*w/p0*p0;}}
printf("%d\n,%d\n,%d\n",a,v,s);}