c++primer 第九章
2010-06-13 17:20
302 查看
#include "item_base.h"
#include "test.h"
int main(void)
{
char* words[]={"hello","world","joyzone","linux","windows"};
vector<string>list(words,words+sizeof(words)/sizeof(char*));
copy(list.begin(),list.end(),ostream_iterator<string>(cout,"/n"));
return 0;
}
int main(void)
{
string temp="aasasf";
int n =strlen(temp.c_str());
cout<<temp.size()<<" "<<n<<endl;
return 0;
}
相关文章推荐
- 顺序容器——C++Primer第九章
- C++Primer第五版 第九章习题答案(1~10)
- C++Primer第五版 第九章习题答案(51~52)
- C++Primer第五版 第九章习题答案(11~20)
- c++primer顺序容器知识点 第九章课后题
- c++primer 第九章习题(1)
- c++primer学习笔记 ( 第九章 顺序容器)
- C++primer第五版笔记-第九章顺序容器
- c++primer第九章习题(4)
- c++primer第九章顺序容器 小结--9
- C++primer第4版第九章顺序容器
- c++primer第九章习题(2)
- C++primer第五版第九章学习笔记
- C++primer第九章习题解答
- c++primer第九章小结2-9
- C++primer 第九章笔记 初稿
- c++Primer习题第九章(2)
- C++Primer第五版【笔记】——第九章——顺序容器
- c++primer第九章习题(5)
- C++Primer第五版 第九章习题答案(21~30)