帮忙看一下,求老师指点
程序代码:
#include <stdio.h> #include <stdlib.h> #include <string.h> #include<stdio.h> tou(int); dakai(int); jian(int); xiu(int); union bz { int banji; char zhiwu[10]; }w; struct rq {int year; int yeu; int ri; }v; struct wm { char wjm[10]; struct wm *lb; }y; struct q {int num; char name[10]; float yw; float sx; float yy; float pj; struct rq v; char st; union bz w; struct q *netx; }u; #define len sizeof(struct q) #define len1 sizeof(struct wm) main() {int a=0; tou(a); return 0; } tou(int a) { char i=0; loop: printf("请输入要执行操作前的字符a/b/c\na 打开已有链表\nb 建新链表\nc 修改链表\n"); scanf("%c",&i); if(i=='a')dakai(a); if(i=='b')jian(a); if(i=='c')xiu(a); else {printf("您输入的有误,请按回车键返回重新输入"); goto loop;} }这是一个程序的开头,编译没问题,就是连接不行,总显示
Linking...
实验.obj : error LNK2001: unresolved external symbol "int __cdecl xiu(int)" (?xiu@@YAHH@Z)
实验.obj : error LNK2001: unresolved external symbol "int __cdecl jian(int)" (?jian@@YAHH@Z)
实验.obj : error LNK2001: unresolved external symbol "int __cdecl dakai(int)" (?dakai@@YAHH@Z)
Debug/实验.exe : fatal error LNK1120: 3 unresolved externals
执行 link.exe 时出错.
实验.exe - 1 error(s), 0 warning(s)
到底是哪里出错了呀?????