find_first_of函数的用法string s="abcdefghijkabcddacb";int i=s.find_first_of('b',1);int j=s.find_first_of('b',2);请问i,j等于多少?函数括号里的第二个参数到底是什么意思?int i=s.find_first_of('basdf',1); int j=s.find_first_of(

来源:学生作业帮助网 编辑:作业帮 时间:2024/06/06 23:47:17
find_first_of函数的用法string s=
xN@_T l-ܚR h)Մ/1hByiy ;7 Y43sglB"d?F:۵ hJH)O k@\'SRE ) cW  Aqb0^ϣZ Тu >C㤗M?لfv^tBAOڰ_q"9 yE&0\ķ|W0Wkħbb%n菾}b2{xxEhO' :xuoKo49Td"[ģ<#5hѰ_?UVS!\*2u\Asj%U]/{gmU^&?Kb7rҔ<)6<3j;ooMe qi7

find_first_of函数的用法string s="abcdefghijkabcddacb";int i=s.find_first_of('b',1);int j=s.find_first_of('b',2);请问i,j等于多少?函数括号里的第二个参数到底是什么意思?int i=s.find_first_of('basdf',1); int j=s.find_first_of(
find_first_of函数的用法
string s="abcdefghijkabcddacb";
int i=s.find_first_of('b',1);
int j=s.find_first_of('b',2);
请问i,j等于多少?
函数括号里的第二个参数到底是什么意思?
int i=s.find_first_of('basdf',1);
int j=s.find_first_of('basdf',2);
这又等于多少?那第一个参数是是什么意思?是找basdf?还是找单个的?

find_first_of函数的用法string s="abcdefghijkabcddacb";int i=s.find_first_of('b',1);int j=s.find_first_of('b',2);请问i,j等于多少?函数括号里的第二个参数到底是什么意思?int i=s.find_first_of('basdf',1); int j=s.find_first_of(
i=1,j=12
第二个参数是位置,从零开始算
-----------------------------------
我把你的程序改了改,要不没法再VC下运行
#include
#include
#include
using namespace std;
void main()
{
string s="abcdefghijkabcddacb";
int i=s.find_first_of('b',1);
int j=s.find_first_of('b',2);
cout