下载了他的库放到C文件那了,VS2013调试提示
错误 1 error LNK2019: 无法解析的外部符号 _GetInteger,该符号在函数 _main 中被引用 C:\Users\Administrator\Documents\Visual Studio 2013\Projects\ConsoleApplication2\ConsoleApplication2\源.obj ConsoleApplication2
错误 2 error LNK1120: 1 个无法解析的外部命令 C:\Users\Administrator\Documents\Visual Studio 2013\Projects\ConsoleApplication2\Debug\ConsoleApplication2.exe 1 1 ConsoleApplication2
代码
#include <stdio.h>
#include "genlib.h"
#include "simpio.h"
main()
{
int n1,n2,total;
printf("this program adds two numbers.\n");
printf("number 1? ");
n1 = GetInteger();
printf("number 2? ");
n2 = GetInteger();
total = n1 + n2;
printf("the total is %d.\n",total);
}
慕用2822798
相关分类