困惑已久
#include<stdio.h>int mian(void)
{
char ch;
while((ch=getchar())!='#')
putchar(ch);
return 0;
我输入这个程序后显示:
/usr/bin/ld: /usr/lib/gcc/x86_64-linux-gnu/9/../../../x86_64-linux-gnu/Scrt1.o: in function `_start':
(.text+0x24): undefined reference to `main'
collect2: error: ld returned 1 exit status
是为什么啊?该怎么解决..