#include<stdio.h>
char a='=';
void main()
{int i=0;
int compa(int);
i=compa(i);
printf("%d",i);
}
int compa(int i)
{
switch(a)
{
case'>':i=0;break;
case'=':i=3;break;
case'<':i=6;break;
}
return(i);
}
Debug/always here.exe : fatal error LNK1169: one or more multiply defined symbols found
执行 link.exe 时出错.
输出因该是3,求调试,谢谢!