文件名称:018
- 所属分类:
- 数学计算/工程计算
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 169kb
- 下载次数:
- 0次
- 提 供 者:
- z**
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
根据盘子分苹果。N(宏)个盘子排成一圈,其中每个盘子中有pn(输入)个苹果,对每一个盘子把pn个苹果平均分成两部分pn/2,分别放到其左右两边的盘子里,如果pn/2不是整数则把(pn+1)/2放到左边,(pn-1)/2放到右边。最后打印每个盘子中的苹果数。要求使用带数组参数的函数完成分配过程,并练习使用条件编译打印输出中间结果。-According to the plates divide the apples. N (macro) a dish lined up in a circle, each of them has the dish in pn (inputs) an apple to each plate, the pn apples equally divided into two parts pn/2, respectively in the left and right sides of the dish, if the pn/2 is not the integer criterion (pn+ 1)/2 on the left, (pn- 1)/2 on the right side. Last print each dish apple in the number. Request use belt array parameter function complete allocation process, and practice using conditional compilation printout intermediate results.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
018\43.ncb
...\43.plg
...\Debug\vc60.idb
...\.....\vc60.pdb
...\.....\43.exe
...\.....\43.pdb
...\.....\43.ilk
...\.....\43.pch
...\.....\43.obj
...\43.cpp
...\43.dsp
...\43.opt
...\43.dsw
...\Debug
018
...\43.plg
...\Debug\vc60.idb
...\.....\vc60.pdb
...\.....\43.exe
...\.....\43.pdb
...\.....\43.ilk
...\.....\43.pch
...\.....\43.obj
...\43.cpp
...\43.dsp
...\43.opt
...\43.dsw
...\Debug
018