VC的这个错误提示到底是什么意思 啊
#include<iostream>using namespace std;
/*cout << "please input the value of x,y";
cin >> "x >>y";*/
void Line(int x0,int y0,int x1,int y1,int value)
{ int x;
float dx,dy,y,m;
dy=y1-y0;
dx=x1-x0;
m=dy/dx;
y=y0;
for(x=x0;x<=x1;x++){
writepixel(x,(int)floor(y+0.5),value);
y+=m;
}
}
main (){
void Line(0,0,100,100,255);}
}
用MFC来实现时。出现了错误:local function definitions are illegal.不知道是怎么回事,请大家帮一下。