精品偷拍一区二区三区,亚洲精品永久 码,亚洲综合日韩精品欧美国产,亚洲国产日韩a在线亚洲

  • <center id="usuqs"></center>
  • 
    
  • 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?還是找單個的?
    其他人氣:823 ℃時間:2020-05-21 02:09:38
    優(yōu)質(zhì)解答
    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
    我來回答
    類似推薦
    請使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點,以保證最佳閱讀效果。本頁提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版