Debug/AFG.exe :fatal error LNK1169:one or more multiply defined symbols found#include void main(){int a,b;int *pointer_1,*pointer_2;a=100;b=10;pointer_1=&a;pointer_2=&b;printf("%d,%d\n",a,b);printf("%d,%d\n",*pointer_1,*pointer_2);}c的程序在vc++中就出现这种情况.如何在VC中正确的执行

问题描述:

Debug/AFG.exe :fatal error LNK1169:one or more multiply defined symbols found
#include
void main()
{
int a,b;
int *pointer_1,*pointer_2;
a=100;b=10;
pointer_1=&a;
pointer_2=&b;
printf("%d,%d\n",a,b);
printf("%d,%d\n",*pointer_1,*pointer_2);
}
c的程序在vc++中就出现这种情况.如何在VC中正确的执行