void move_paddle(PADDLE pad, bool alongX)
{
if(alongX!=TRUE)
{
if((pad.py+pad.length/2)>=B || (pad.py-pad.length/2)<=BB)
pad.pvx*= -1;
}
else if((pad.px+pad.length/2)>=A || (pad.py-pad.length/2)<=AA)
pad.pvx*= -1;
}
What is the actual error ? M unable to get through.