#include<math.h>
#include<stdio.h>
#include<reg51.h>
void main(void)
{
SCON=0x52;
TMOD=0x20;
TH1=0xf3;
TR1=1;
float x;
float y;
for(x=-1.0;x<=1.0;x+=0.1)
{
y=acos(x);
printf("ACOS(%f)=%f\n",x,y);
getchar();
}
}
TEXT.C(18): error C141: syntax error near 'float'
TEXT.C(18): error C202: 'x': undefined identifier
TEXT.C(19): error C141: syntax error near 'float'
TEXT.C(19): error C202: 'y': undefined identifier
TEXT.C(20): error C202: 'x': undefined identifier
TEXT.C(22): error C202: 'y': undefined identifier
TEXT.C(23): error C202: 'x': undefined identifier