会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Asunataisiki
博客园
首页
新随笔
联系
订阅
管理
2020年12月14日
find函数
摘要: 1.find() 返回值为目标元素的下标,若不存在目标元素则返回-1 #include<iostream> using namespace std; int main() { string str1 = "A BC", str2 = "abc"; char c = '5'; int i; i= st
阅读全文
posted @ 2020-12-14 23:57 Asunataisiki
阅读(118)
评论(0)
推荐(0)
2020年12月13日
insert添加字符/字符串
摘要: insert函数包含在#include<iostream>中,其作用是在指定的地方添加字符/字符串。 基本格式:字符串名称 = 原字符串.insert(start,(count),' 字符 ' / " 字符串 ") start表示在哪个位置前开始添加,而count表示添加几个(仅在添加字符时才能使用
阅读全文
posted @ 2020-12-13 23:45 Asunataisiki
阅读(810)
评论(0)
推荐(0)
公告