C语言报错
--------------------Configuration:1-10-1-Win32Debug--------------------Compiling...1-...
--------------------Configuration: 1-10-1 - Win32 Debug--------------------
Compiling...
1-10-1.c
c:\users\administrator\desktop\1-10-1.c(25) : warning C4101: 'i' : unreferenced local variable
c:\users\administrator\desktop\1-10-1.c(45) : warning C4101: 's' : unreferenced local variable
c:\users\administrator\desktop\1-10-1.c(70) : warning C4013: 'clrscr' undefined; assuming extern returning int
c:\users\administrator\desktop\1-10-1.c(69) : warning C4101: 's' : unreferenced local variable
c:\users\administrator\desktop\1-10-1.c(111) : warning C4013: 'find' undefined; assuming extern returning int
c:\users\administrator\desktop\1-10-1.c(158) : warning C4101: 'flag' : unreferenced local variable
c:\users\administrator\desktop\1-10-1.c(158) : warning C4101: 'i' : unreferenced local variable
Linking...
1-10-1.obj : error LNK2001: unresolved external symbol _clrscr
1-10-1.obj : error LNK2001: unresolved external symbol _find
Debug/1-10-1.exe : fatal error LNK1120: 2 unresolved externals
执行 link.exe 时出错.
1-10-1.exe - 1 error(s), 0 warning(s) 展开
Compiling...
1-10-1.c
c:\users\administrator\desktop\1-10-1.c(25) : warning C4101: 'i' : unreferenced local variable
c:\users\administrator\desktop\1-10-1.c(45) : warning C4101: 's' : unreferenced local variable
c:\users\administrator\desktop\1-10-1.c(70) : warning C4013: 'clrscr' undefined; assuming extern returning int
c:\users\administrator\desktop\1-10-1.c(69) : warning C4101: 's' : unreferenced local variable
c:\users\administrator\desktop\1-10-1.c(111) : warning C4013: 'find' undefined; assuming extern returning int
c:\users\administrator\desktop\1-10-1.c(158) : warning C4101: 'flag' : unreferenced local variable
c:\users\administrator\desktop\1-10-1.c(158) : warning C4101: 'i' : unreferenced local variable
Linking...
1-10-1.obj : error LNK2001: unresolved external symbol _clrscr
1-10-1.obj : error LNK2001: unresolved external symbol _find
Debug/1-10-1.exe : fatal error LNK1120: 2 unresolved externals
执行 link.exe 时出错.
1-10-1.exe - 1 error(s), 0 warning(s) 展开
展开全部
前面一些都是警告,主要是变量定义了没初始化;
下面的错误时链接的时候出现错误,应该是_clrscr和_find这两个没声明或者没定义,你找找看。
下面的错误时链接的时候出现错误,应该是_clrscr和_find这两个没声明或者没定义,你找找看。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询