函数勿看~(文本的互相剪切) :: 我的工作
来源: BlogBus 原始链接: http://blogbus.com:80/blogbus/blog/diary.php?diaryid=304879 存档链接: https://web.archive.org/web/20040803035229id_/http://blogbus.com:80/blogbus/blog/diary.php?diaryid=304879
我的工作 全是函数~ <<<函数勿看~(两同类型容器的交换和赋值实验) | 首页 | 函数勿看~(文本的互相剪切) 时间: 2004-08-03 // test27.cpp : Defines the entry point for the console application. // #include "stdafx.h" #include #include #include #include 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 发表于 2004-08-03 09:35 引用(Trackback0) | 编辑 评论 发表评论 最后更新 函数勿看~(文本的互相剪切) 函数勿看~(两同类型容器的交换和赋值实验) 函数勿看~(vector的插入和排序) 函数勿看-----(单iterator的容器删除) 函数勿看~(string::npos) 函数勿看~(文本分类查找程序)