求c语言分支定界算法的例子和程序?谢谢

qingnizhu 2011-05-23 03:49:07
求c语言分支定界算法的例子和程序?谢谢
...全文
217 5 打赏 收藏 转发到动态 举报
写回复
用AI写文章
5 条回复
切换为时间正序
请发表友善的回复…
发表回复
qingnizhu 2011-05-24
  • 打赏
  • 举报
回复
有没具体解决个简单例子的程序,用C语言写的程序。谢谢
cqltwslt 2011-05-23
  • 打赏
  • 举报
回复
自己找一部分才好,别人的是别人的思想!
下载一些代码啊
朱韦刚 2011-05-23
  • 打赏
  • 举报
回复
#include "stdafx.h"
#include "stdafx.h"
#include <stdio.h>

int main()
{
int i;

scanf("%d",&i);

switch(i)
{
case 1:
case 2:
case 3:
case 4:
case 5:printf("%d\n",i);
break;
case 6:
case 7:printf("%d\n",i);
break;
default:
break;

}
return getchar();
}
朱韦刚 2011-05-23
  • 打赏
  • 举报
回复
#include "stdafx.h"
#include "stdafx.h"
#include <stdio.h>

int main()
{
int i;

scanf("%d",&i);

switch(i)
{
case 1:
case 2:
case 3:
case 4:
case 5:printf("%d\n",i);
break;
case 6:
case 7:printf("%d\n",i);
break;
default:
break;

}
return getchar();
}
朱韦刚 2011-05-23
  • 打赏
  • 举报
回复
#include "stdafx.h"
#include <stdio.h>

int main()
{
int i;

scanf("%d",&i);

switch(i)
{
case 1: printf("%d\n",i);
break;
case 2: printf("%d\n",i);
break;
default:
break;

}
return getchar();
}

69,382

社区成员

发帖
与我相关
我的任务
社区描述
C语言相关问题讨论
社区管理员
  • C语言
  • 花神庙码农
  • 架构师李肯
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧