Turbo C的错误: search_email() defined in module LINK.C is duplicated in module LINK.C

liuenhai211 2008-12-18 08:23:29
在其它C编译器上正常:
Turbo C的错误: search_email() defined in module LINK.C is duplicated in module LINK.C
代码文件:(代码是基本代码)

link.h -- 声明文件;
#ifndef LINK_H
#define LINK_H
node *search_email(node *);
#endif
//////////////////////////////////////
link.c -- 方法实现文件; /////////////

#include<stdio.h>
#include<stdlib.h>
#include<conio.h>
#include<string.h>
#include"link.h"

node *search_email( node *header )
{
char email[20];
printf( "\n ヌ・菠・昮ェイ鰉ッオトムァノ嶹トE-mail」コ" );
scanf( "%s" , email );
node *p = header -> next ;
while( p != NULL )
{
if( strcmp( p -> data -> email , email) == 0)
break;
p = p -> next;
}
return p;
}
////////////////////////////
main.c -- 主调函数;

#include<stdio.h>
#include<stdlib.h>
#include<string.h>
#include<conio.h>
#include"link.h"
int main()
{
...search_email( node *header );...
return 0;
}
...全文
242 10 打赏 收藏 转发到动态 举报
写回复
用AI写文章
10 条回复
切换为时间正序
请发表友善的回复…
发表回复
liuenhai211 2008-12-22
  • 打赏
  • 举报
回复
up
liuenhai211 2008-12-19
  • 打赏
  • 举报
回复
快点来救救这个帖子啊!!!
pingzi_1119 2008-12-19
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 liuenhai211 的回复:]
Turbo C下难道不能像其编译器把源文件(*.h, *.c)分类,然后调用.h吗?
[/Quote]
up
lbh2001 2008-12-19
  • 打赏
  • 举报
回复
我来啦
liuenhai211 2008-12-19
  • 打赏
  • 举报
回复
UP
lbh2001 2008-12-19
  • 打赏
  • 举报
回复
[Quote=引用 4 楼 liuenhai211 的回复:]
Turbo C下难道不能像其编译器把源文件(*.h, *.c)分类,然后调用.h吗?
[/Quote]
肯定是可以的,你代码长不长?
liuenhai211 2008-12-19
  • 打赏
  • 举报
回复
Turbo C下难道不能像其编译器把源文件(*.h, *.c)分类,然后调用.h吗?
jixingzhong 2008-12-18
  • 打赏
  • 举报
回复
代码本身没有问题...
liuenhai211 2008-12-18
  • 打赏
  • 举报
回复
TOP
lbh2001 2008-12-18
  • 打赏
  • 举报
回复
将#include"link.h"放在前面试试,
另外将link.h,link.c该为别的名字如linkaa.h,linkaa.c

69,378

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧