C++ primer English Fourth edition page 349 exercises
来源:互联网 发布:网络监控摄像机多少钱 编辑:程序博客网 时间:2024/05/16 10:32
/**//* C++ primer English Fourth edition
page 349 exercise 9.40
*/
#include<string>
#include<iostream>
using namespace std;
int main()
...{
string q1("When lilacs last in the dooryard bloom'd");
string q2("The child is father of the man");
string sentence;
sentence.assign(q2,0,12);
sentence.append(q1,16,16);
cout<<sentence<<endl;
return 0;
}
// page 349 exercise 9.41
#include<string>
#include<iostream>
using namespace std;
string greet(string form,string lastname,string title,string::size_type pos,int len)
...{
form.replace(8,5,lastname);
form.replace(5,2,title,pos,len);
return form;
}
int main()
...{
string generic1("Dear MS Daisy:");
string generic2("MrsMsMissPeople");
string lastName("AnnaP");
string salute=greet(generic1,lastName,generic2,5,4);
cout<<salute<<endl;
return 0;
}
page 349 exercise 9.40
*/
#include<string>
#include<iostream>
using namespace std;
int main()
...{
string q1("When lilacs last in the dooryard bloom'd");
string q2("The child is father of the man");
string sentence;
sentence.assign(q2,0,12);
sentence.append(q1,16,16);
cout<<sentence<<endl;
return 0;
}
// page 349 exercise 9.41
#include<string>
#include<iostream>
using namespace std;
string greet(string form,string lastname,string title,string::size_type pos,int len)
...{
form.replace(8,5,lastname);
form.replace(5,2,title,pos,len);
return form;
}
int main()
...{
string generic1("Dear MS Daisy:");
string generic2("MrsMsMissPeople");
string lastName("AnnaP");
string salute=greet(generic1,lastName,generic2,5,4);
cout<<salute<<endl;
return 0;
}
- C++ primer English Fourth edition page 349 exercises
- C++ primer English fourth edition exercise page 301
- C++ primer english fourth edition page330
- C++ primer English Fourth edition P322 Exercise 9.18
- A Error in C++ primer English Fourth edition
- c++primer exercises 2.9
- c++primer exercises 7.0
- c primer plus 4th edition Programing Exercises answer(chapter 6)
- c primer plus 4th edition Programing Exercises answer(Chapter 7)
- EXERCISE 21.22 - Thinking In Java(Fourth Edition)Page 107
- C++ Primer Plus (Six Edition) Chapter 2, Programming Exercises
- C++ Primer Plus (Six Edition) Chapter 3, Programming Exercises
- Beginning C: From Novice to Professional, Fourth Edition
- Beginning C: From Novice to Professional, Fourth Edition
- computer networks, fourth edition
- Computer Networks, Fourth Edition
- Computer Networks, Fourth Edition
- Maximum Security, Fourth Edition
- C#无法对Paradox数据库进行操作的解决办法
- ftp服务器完全手册
- RFC 822 中文版 MIME解析基础(6)(第9-10页)
- Desktop控制第二部分 - Hook Desktop
- It is to celebrate my blog's first day
- C++ primer English Fourth edition page 349 exercises
- 腾讯企业QQ服务器完全架设指南
- 什么是存款准备金以及存款准备金率
- 免费在线生成LOGO和小站标的网站
- 字符串s中出现的C字符删除的不同实现方法
- Redhat Enterprise Linux as 4 update 3
- 数据库设计范式
- 让CSDN 博客使用Windows Live Writer _初体验
- 可嵌套的C语言异常处理机制