问一个关于C语言编程的错误的问题

来源:百度知道 编辑:UC知道 时间:2024/05/14 08:51:31
我是一个初学者,在编译的代码里,出现下面这些错误提示:
LinKing C:\TURBOC2\NONAME.EXE:
Linker Error:Undefined symbol '_main' in module C0S
Linker Error:Undefined symbol '_getchiar' in module NONAME.C
Linker Error:Undefined symbol '_getkey' in module NONAME.C

下面是我的部分代码,麻烦帮偶解决下这个问题,全部代码发不上来啊

#include<bios.h>
#include<dos.h>
#include<conio.h>
#include<ctype.h>
#include<process.h>
#include<stdlib.h>
#include<stdio.h>
#include<string.h>

#define null 0
#define ESC 0x001b
#define F1 0x3b00
#define F2 0x3c00
#define F3 0x3d00
#define F5 0x3f00
#define F6 0x4000
struct stutype /*madeinguozhirong*/
{
char no[11];
char xm[10];
float cj[4];
};

void maim()
{ int key;
struct date d;
getdate(&d);
clrscr();
printf("\n\n\n\n\

你把void main写成void maim
getchar写成getchiar
getkeys写成getkey

....楼主,是void main(),不是void maim()!

有点意思。好像确实是楼上所说啊

依照上面来看
都是输入错误
并不是太大错误
按照提示修改就好了啊
楼主
代码是不是你写的哦
要是你写的
这程度的问题应该能解决的啊