Debug/e.exe : fatal error LNK1120: 1 unresolved externals执行 link.exe 时出错.e.exe - 1 error(s), 0 warning(s)是什么错?
匿名课官 圈内达人 2015-08-04 15:05:40
3161 3 0

我先建立了一个工程,然后添加了一个文件,之后输入了视频里的一个范例程序,点击编译的时候出现了一个The filw is not included in the project.Would you like to add it?我点了确定,然后显示0错误,然后我点连接,就出现了一个错误。

这是那个程序:

#include<stdio.h>

mian()

{int a;

printf("请输入一个整数:");

scanf("%d",&a);

if(a>0)

{scanf("%d\n",a);

}

else

{printf("%d\n",-a);

}

}

我也不知道为什么就运行不上

问题来自: if语句

共 3 个回答

您还没有登录,所以不能回复该问题
我要回复

  • 0

    点赞

  • 扫一扫分享朋友圈

    二维码

  • 分享

相关问题