do...while
来源:互联网 发布:淘宝食品安全怎么填写 编辑:程序博客网 时间:2024/05/22 14:18
实例:不断提示用户输入一对数,然后求其和
string rsp; do{ cout << "please enter two numbers:" << endl; int val1,val2; cin >> val1 >> val2; cout << "the sum of " << val1 << "and " << val2 << "is: " << val1 + val2 << endl; cout << "more? Enter yes or no " << endl; cin >> rsp; } while (rsp.empty() && rsp[0] != 'n');
0 0
- do-while
- do while
- do while
- do while
- do while
- do while
- do while
- do while
- do while
- do while
- do while
- while ; do
- do-while
- do while
- do while
- do while
- do while
- do-while
- 【Unity3D】公告栏与开始界面的布置
- leetcodeOJ 557. Reverse Words in a String III
- c++线性表实现(链式)
- 安装MXNET
- 机器学习--学习率
- do...while
- 大数据:Spark Core(二)Driver上的Task的生成、分配、调度
- bzoj 4033: [HAOI2015]树上染色 树形dp
- 事务ACID的实现
- C语言球钟问题
- python3.6安装pyspider出现的问题
- JM分析
- myeclipes DeBug模式无法启动解决办法
- Linux 文件类型与扩展名