这段程序为什么报错
#include<stdio.h>#include"abc.cpp"
void main()
{
double a,b,c;
double averageValue;
a=2;b=3;c=4;
averageValue=AVE(a,b,c);
printf(" averageValue:%If\n",avarageValue);
avarageValue=AVE(a+1,b+2,c+5);
printf("avarageValue:%Lf\n", avarageValue);
}
报错:
--------------------Configuration: Func1 - Win32 Debug--------------------
Compiling...
Func1.c
c:\documents and settings\administrator\abc.cpp(4) : error C2143: syntax error : missing ';' before '}'
C:\Documents and Settings\Administrator\Func1.c(9) : error C2018: unknown character '0xa3'
C:\Documents and Settings\Administrator\Func1.c(9) : error C2018: unknown character '0xac'
C:\Documents and Settings\Administrator\Func1.c(9) : error C2146: syntax error : missing ')' before identifier 'avarageValue'
C:\Documents and Settings\Administrator\Func1.c(9) : error C2059: syntax error : ')'
C:\Documents and Settings\Administrator\Func1.c(10) : error C2065: 'avarageValue' : undeclared identifier
C:\Documents and Settings\Administrator\Func1.c(10) : warning C4244: '=' : conversion from 'double ' to 'int ', possible loss of data
执行 cl.exe 时出错.
Func1.obj - 1 error(s), 0 warning(s)
请高手解答