BugFree-Club / BugFree-Club/Reports-And-Issues
问下这个c哪错了,一直显示这样的(1>源1.obj : error LNK2019: 无法解析的外部符号 "void __cdecl accepdata(struct ss * const)" (?accepdata@@YAXQAUss@@@Z),该符号在函数 _main 中被引用 1>D:\users\asus\documents\visual studio 2012\Projects\02\Debug\02.exe : fatal error LNK1120: 1 个无法解析的外部命令)
Open
- Dominant language
- C++
- Stars
- 6
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
#include
#include
#include
#include"process.h"
#define SIZE 9
typedef struct ss
{long left;
long right;
long deduct;
int tax;}TAX_LIST;
int main()
{ FILE *fp;
TAX_LIST tax_list[SIZE];
void accepdata(TAX_LIST tax_list[]);
if((fp=fopen("d:\\TAX.din","wb"))==NULL)
{
printf("不能打开文件");
exit(1);
}
accepdata(tax_list);
if(fwrite(tax_list,sizeof(TAX_LIST),SIZE,fp)!=SIZE)
printf("文件书写错误");
fclose(fp);
return 0;
}
void acceptdata(TAX_LIST tax_list[])
{
int i;
for(i=0;i
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.