这段c语言那里错了
#include<stdio.h>int product (int x, int y);
void main()
{
int a,b,c;
printf("输入两个整数:");
scanf("%d %d ", &a,&b);
c=product (a,b);
printf("%d*%d=%d\n ", a,b,c);
}
int product ( int x, int y)
{
int z;
z=x*y;
return z;
}
编译时没错,执行时提示
--------------------Configuration: Func - Win32 Debug--------------------
Linking...
samp1.obj : error LNK2005: _main already defined in ManMix.obj
Debug/Func.exe : fatal error LNK1169: one or more multiply defined symbols found
执行 link.exe 时出错.
Func.exe - 1 error(s), 0 warning(s)
到底是哪里错了啊,请有经验的来谈谈