求解释为什么会有error LNK2001
#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
struct stud
{
char Name[20];
float Score;
struct stud*next;
};
typedef struct stud Student;
int GoonDisplay(int i);
int GoonDispaly(int i)
{
char a;
if(i==0||i%10!=0)
{
return 1;
}
printf("press \'Enter\' to go on: ");
a=getch();
if(a='\n')
{
return 1;
}
else
return 2;
}
void Display(Student*head)
{
static int i=0;
Student*p=(Student*)malloc(sizeof(Student));
if(head!=NULL)
{
p=head;
do
{
printf("%s\n",&(p->Name));
printf("%d",&(p->Score));
p=p->next;
i++;
}
while
(
(i==0||i%10!=0)&&
p->next!=NULL&&
(GoonDisplay(i)==1)
);
}
printf("No data.\n");
}
int main()
{
static Student*head=NULL;
Display(head);
return 0;
}
error LNK2001: unresolved external symbol "int __cdecl GoonDisplay(int)" (?GoonDisplay@@YAHH@Z)
fatal error LNK1120: 1 unresolved externals
...全文
相关推荐
error LNK1120和error lnk2001
对于编程人员在编译程序的时候经常会遇到error LNK1120和error lnk2001这问题,跟大家分享一下自己找到的资料,以及自己遇到的问题,希望对大家有帮助。
解决error LNK2001: unresolved external symbol
解决error LNK2001: unresolved external symbol
vc报error LNK2001unresolved external symbol的解决方法
解决报错Error LNK2001:unresolved external symbol
解决error LNK2001 无法解析的外部符号 int __cdecl sprintf(
解决error LNK2001 无法解析的外部符号 int __cdecl sprintf(
报error LNK2001 unresolved external symbol错就是因为你...
visual c++报error LNK2001 unresolved external symbol错就是因为你...


