test
来源:互联网 发布:math js w3c 编辑:程序博客网 时间:2024/06/13 21:37
<pre name="code" class="html"><pre name="code" class="cpp">#include <iostream>#include <Cmath>using namespace std;int main(){ double x,y; int c; cout <<"请输入大于0 的实数值x"<<endl; cin >> x; if(x < 0) cout<<"Input error!"<<endl; else { c = int (x)/2; switch(c) { case 0: y = x;break; case 1: case 2: y = x * x + 1;break; case 3: case 4: y = sqrt(x + 1);break; default: y = 1/(x + 1);break; } cout <<"y = "<< y <<endl; }}
0 0
- test
- test
- test
- test
- test
- test
- test
- Test
- test
- Test
- test
- test
- test
- test
- test
- test
- test
- Test
- java数据连接池的几种区别和使用
- OPenGL常用绘图函数
- HDU 5781 ATM Mechine(概率DP)
- 学String类后实现的简单习题
- Hadoop2.x + eclipse 插件配置
- test
- char *strtok(char *s, const char *delim) 用法
- 一个de两种意思——谈谈Dojo define 和declare的区别
- ios 系统权限检测
- linux sysfs api
- Java通过两个栈实现队列
- iOS中集成ijkplayer视频直播框架
- Are sparse representations really relevant for image classification?
- HDU 4352 XHXJ's LIS(数位dp+搜索)★