6.42
来源:互联网 发布:初级程序员考试考点 编辑:程序博客网 时间:2024/06/06 07:47
#include<iostream>#include<string>#include<vector>using namespace std;string make_plural(size_t ctr, const string &word, const string &ending = "s"){return (ctr > 1) ? word + ending : word;}int main(){cout << make_plural(1, "success", "es") << " " << make_plural(1, "failure") << endl;cout << make_plural(2, "success", "es") << " " << make_plural(2, "failure") << endl;return 0;}
0 0
- 6.42
- 6.42
- 练习6.42
- csapp2e 家庭作业 6.42 6.43 6.44
- JAVA基础6.42——静态代码块
- CCS6.0安装+windows xp+编译器c2000v6.4+XDCTools 3.30+SYS/BIOS 6.42+XDAIS 7.24
- 转发和重定向之详解
- Maven搭建SpringMVC+MyBatis项目详解
- bzoj 1969: [Ahoi2005]LANE 航线规划(树链剖分+线段树+最小生成树)
- 如何用iptables实现NAT 【转】
- 287. Find the Duplicate Number
- 6.42
- 微机原理与接口技术之8086的编程结构
- 关于Android的即时聊天应该选择哪种协议
- 0 mycat安装
- android实验二之体重标准计算器
- 在Maven的pom.xmlz中添加Servlet的jar包依赖报错
- 6.44
- 全球首个微信应用号开发教程!
- Hibernate中的数据库方言(Dialect)