17周项目五(5)。委派任务
来源:互联网 发布:各国驱逐舰知乎 编辑:程序博客网 时间:2024/05/27 06:16
上机内容:C++程序的编写和运行
上机目的:掌握简单C++程序的编辑、编译、连接和运行的一般过程
我的程序:
运行结果:
心得体会: 略
知识点总结:略
上机目的:掌握简单C++程序的编辑、编译、连接和运行的一般过程
我的程序:
/*Copyright (c) 2013, 烟台大学计算机学院* All rights reserved.* 作 者:赵玲玲* 完成日期:2013 年 12 月 20 日* 版 本 号:v1.0* 输入描述: 无* 问题描述: 委派任务* 程序输出: 略* 问题分析:根据所给程序和题意修改程序* 算法设计:略*/#include <iostream>using namespace std;int main(){ int a,b,c,d,e,f,count=0; cout<<"去的人有:"<<endl; for(a=0; a<=1; a++) for(b=0; b<=1; b++) for(c=0; c<=1; c++) for(d=0; d<=1; d++) for(e=0; e<=1; e++) for(f=0; f<=1; f++) if(a+b>1&&a+d!=2&&a+e+f==2&&(b+c==0||b+c==2)&&c+d==1&&(d+e==0||d==1)) { if(a==1)cout<<"A"; if(b==1)cout<<"B"; if(c==1)cout<<"C"; if(d==1)cout<<"D"; if(e==1)cout<<"E"; if(f==1)cout<<"F"; } return 0;}
运行结果:
心得体会: 略
知识点总结:略
0 0
- 17周项目五(5)。委派任务
- 第17周项目24-委派任务
- 第三周项目四(5)-委派任务
- 第九周项目六(任务委派)
- 第三周项目-委派任务
- 第三周项目:委派任务
- 第九周上机项目六(2)委派任务
- 第三周 项目4(4)委派任务
- C++第11周项目2(5)参考——委派任务
- 第9周项目6委派任务
- 第九周项目六 委派任务
- 第九周项目六--委派任务
- 第九周项目六—委派任务
- 第九周项目6 委派任务
- 第三周项目 侦察队委派任务
- 第3周项目4 委派任务
- 第3周-项目4-委派任务
- 第三周项目4—委派任务
- VS2008 Debug与Release的本质区别
- vs2008 字体设置
- 获取Bing每日背景图,不需要代码奥!
- InitCommonControls和InitCommonControlsEx
- InitCommonControls和InitCommonControlsEx
- 17周项目五(5)。委派任务
- InitCommonControls和InitCommonControlsEx
- InitCommonControls和InitCommonControlsEx
- ubuntu12.04下设置IPv6
- 第一个JavaScript程序
- 《卓有成效的管理者(The Effective Executive)》读后感
- InitCommonControls和InitCommonControlsEx
- InitCommonControls和InitCommonControlsEx
- nutch 2.* 导入eclipse