i=1,j=12
第二個參數(shù)是位置,從零開始算
-----------------------------------
我把你的程序改了改,要不沒法再VC下運(yùn)行
#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
find_first_of函數(shù)的用法
find_first_of函數(shù)的用法
string s="abcdefghijkabcddacb";
int i=s.find_first_of('b',1);
int j=s.find_first_of('b',2);
請問i,j等于多少?
函數(shù)括號里的第二個參數(shù)到底是什么意思?
int i=s.find_first_of('basdf',1);
int j=s.find_first_of('basdf',2);
這又等于多少?那第一個參數(shù)是是什么意思?是找basdf?還是找單個的?
string s="abcdefghijkabcddacb";
int i=s.find_first_of('b',1);
int j=s.find_first_of('b',2);
請問i,j等于多少?
函數(shù)括號里的第二個參數(shù)到底是什么意思?
int i=s.find_first_of('basdf',1);
int j=s.find_first_of('basdf',2);
這又等于多少?那第一個參數(shù)是是什么意思?是找basdf?還是找單個的?
其他人氣:823 ℃時間:2020-05-21 02:09:38
優(yōu)質(zhì)解答
我來回答
類似推薦
- Find the sum of the first 50 multiples of 11
- c++中string 的find_first_not_of
- The first,the first of all ,first of all ,at the first 之間主要區(qū)別{用法}
- first of all,find out()
- Find the first derivative of y = x^(x - 2)
- Cathy這個英文名怎么讀
- 向淀粉的酸性水解液中直接加入碘水檢驗淀粉是否水解完全
- Shall we go to the movie__?A.in this evening B.on that evening C.this evening D.last evening選擇題?
- 矩陣A,EA=AE么
- 怎樣判斷晨線和昏線 .
- 五岳歸來不看山 的上句是什么
- 三十一人去拔草,十八人去種樹,后又派二十人去支援,拔草人數(shù)是植樹人數(shù)的兩倍,支援拔草的人數(shù),等量關(guān)
猜你喜歡
- 1我在幕天席地的生涯中幕天席地什么意思
- 236.Do you think Tommy is ______ the truth?
- 3tall.old.young .strong.short.這些單詞的比較級
- 4近水樓臺先得月,向陽花木易為春是不是關(guān)于抒懷言志的詩句
- 5三角函數(shù)圖像 平移變換
- 6求下列各方程表示的圓的圓心坐標(biāo)和半徑長
- 7下列現(xiàn)象中屬于做功使物體內(nèi)能增加的是:A水蒸氣將壺蓋頂起 2用火爐給水加熱 3鋼條在水泥地上摩擦變熱 4用太陽能熱水器對水加熱
- 8一個兩位數(shù),它的十位上的數(shù)字比個位上的數(shù)字大4且這個兩位數(shù)比構(gòu)成它的兩個數(shù)碼之和的7倍還要大3.
- 9請問 據(jù)說,我在娘胎時,就“登臺唱戲”了——母親在臺上唱,我在她肚子里唱.引號.破折號作用是什么
- 10九年級上人教版語文書第24課
- 11一個物體從40m的高處自由下落,下落多少米后該物體的動能和重力勢能相等?
- 12尋求靜心的道家心法