函数勿看~(文本的互相剪切) :: 我的工作
未识别博客 · chifanhezhou · 2004-08-03
我的工作
全是函数~
|
首页
|
函数勿看~(文本的互相剪切)
时间: 2004-08-03
// test27.cpp : Defines the entry point for the console application.
//
#include "stdafx.h"
#include <string>
#include <vector>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
string quote1("when lilacs last in the dooryard bloom'd");
string quote2("The child is father of the man");
string sentence;
sentence.assign(quote2,0,12);
cout<<"sentence is:"<<sentence<<endl;
sentence.append(" ");
sentence.append(quote1,17,16);//这里16时表示长度的参数不代表尾位置;
cout<<"sentence is:"<<sentence<<endl;
//printf("Hello World!\n");
return 0;
}
chifanhezhou
引用(Trackback0)
|
编辑
评论
发表评论
最后更新
函数勿看~(文本的互相剪切)
函数勿看~(两同类型容器的交换和赋值实验)
函数勿看~(vector的插入和排序)
函数勿看-----(单iterator的容器删除)
函数勿看~(string::npos)
函数勿看~(文本分类查找程序)
原始快照:web.archive.org