|
马上注册,结交更多好友,享用更多功能^_^
您需要 登录 才可以下载或查看,没有账号?立即注册
x
本帖最后由 sc3297 于 2012-2-23 21:27 编辑
#include <stdio.h>
void mian()
{
int a,b,c,temp;
printf("输入abc\n");
scanf("%d%d%d",&a,&b,&c);
if (a>b)
{
temp=a;
a=b;
b=temp;
}
if (a>c)
{
temp=a;
a=c;
c=temp;
}
if (b>c)
{
temp=b;
b=c;
c=temp;
}
printf("%d %d %d\n",a,b,c);
}
******************************************错误提示******************************************************************
--------------------Configuration: Cpp1 - Win32 Debug--------------------
Linking...
LIBCD.lib(crt0.obj) : error LNK2001: unresolved external symbol _main
Debug/Cpp1.exe : fatal error LNK1120: 1 unresolved externals
执行 link.exe 时出错.
Cpp1.exe - 1 error(s), 0 warning(s)
********************************************************************************************************************
英语不好 看不明白
|
|