test
来源:互联网 发布:mac 查询端口号 编辑:程序博客网 时间:2024/06/06 05:47
<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
- 中小站长网站建设发展需注意的的六点ccxtqj
- Ubuntu下Qt4.8.6生成的界面中文无法显示的问题
- TCP通信的三次握手和四次撒手的详细流程
- 第一份软件测试实习(2)--需求评审会议20150826
- 实战 Jetty
- test
- Mac通过iResign重签名ipa未越狱安装越狱程序软件
- 【找规律(其实很神的东西)】【TJOI 2015】【bzoj 4001】概率论
- unix基础知识
- 受到Oracle database 和RAC database 支持的 虚拟化技术和分区技术(partitioning Technologies )
- HDOJ 1863 畅通工程 (最小生成树]
- 四塔问题
- Java中Exception的种类
- SAP移动类型103解析