c语言基础求助!!
while.obj : error LNK2001: unresolved external symbol _getcherDebug/while.exe : fatal error LNK1120: 1 unresolved externals
↑↑↑我想知道一下这个是什么错误,应该要怎么改正???编译出来是没错的,为什么执行的时候就不行了???
以下是我的源代码:
#include<stdio.h>
void main()
{
int n = 0;
printf("input a string\n");
while ( getcher()!='\n' )
{
n++;
}
printf("%d", n);
} #include <stdio.h>
中间要有个空格 getchar() 不是getcher() 是getchar()吧 char 不好意思了各位,居然犯这种低级错误,心累{:5_104:} 最怕的就是粗心了 学习到了
页:
[1]