求圆的面积
来源:互联网 发布:vidconvert mac 编辑:程序博客网 时间:2024/04/28 07:34
#include <stdlib.h>#include <string.h>#include <iostream>using namespace std;#include "oj.h"/*功能: 输入: 输出:arrValue:存储返回的符合范围之内的圆面积,内存在函数外已经申请 nValue:返回数组的行数 返回: */void OutputRotundityArea(float *arrValue,int &nValue){const float PI = 3.14;for (int i = 1; i <= 10; ++i){float area = PI * i *i;if (area>= 40 && area<=90){arrValue[nValue] = area;nValue ++;}}}int main(){float fResArray[10];for (int i = 0; i < 10; ++i){fResArray[i] = 0.0;}int nArrayCount = 0 ;OutputRotundityArea(fResArray, nArrayCount);cout<<nArrayCount<<endl;cout<<fResArray[0]<<""<<fResArray[1]<<endl;return 0;}
0 0
- 求圆的面积
- 求圆的面积
- 求圆的面积
- 求圆的面积
- 求圆的面积
- 求圆的面积
- 求圆的面积
- 求圆的面积
- 求圆的面积
- 求圆的面积java
- C#求圆的面积
- 68-求圆的面积
- 求圆的面积【Java】
- java求圆的面积
- JAVA求圆的面积
- 求圆、长方形的面积
- c++求圆的面积和矩形的面积
- d005: 求圆的周长 和 面积
- linux & android平台WIFI休眠唤醒问题
- Android WIFI 驱动移植
- Android Wifi驱动--底层
- activity中的onWindowFocusChanged方法
- Qt Error: The program has unexpectedly finished 解决思想
- 求圆的面积
- Unity3D内存释放
- Lucene 的检索方式
- Android MediaPlayer
- ssh 无密码登录出错问题
- 做到这10点,你会越来越好
- 纯QML程序添加开启动画
- 详解Top命令 输出命令行选项及代码
- HDOJ 4565 So Easy!