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++

来源:学生作业帮助网 编辑:作业帮 时间:2024/07/11 21:01:13
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(
xIK@ǿʠX &-cO$TiK)ukz;ت]TRe2[8֛7ax6̏ +ީ9\`2*$@ 8OLj*D4XRIȺ*@<5%ZRe5$%R, &܇5⠱g0 AljrN=DN7H숴d?;7XgjTaxFU8P#colGR D5 /ڜ٬#iYņ=pn mx)4kR#8gWyU\O|zW',:۹> %:/f2kfWyk,.U^G7hbۮq]PCVV

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++
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++的原因,你新建一个项目,把代码复制过去试试