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

  • <center id="usuqs"></center>
  • 
    
  • System.Text.StringBuilder”并不包含“Split”的定義

    System.Text.StringBuilder”并不包含“Split”的定義
    想要以‘c’為分隔,分離字符串,但是提示如題錯(cuò)誤,怎么改呢?
    using System;
    using System.Collections.Generic;
    using System.Text;
    namespace ConsoleApplication5
    {
    class Program
    {
    static void Main(string[] args)
    {
    int i;
    Console.WriteLine("請(qǐng)輸入一個(gè)字符串:");
    string str = Console.ReadLine();
    StringBuilder newstr = new StringBuilder(str);
    newstr.Insert(3,"abcd");
    Console.WriteLine(newstr);
    char[] tor ={ 'c' };
    string[] str1 = new string[100];
    str1 = newstr.Split(tor);
    int j = 0;
    while (j < str1.Length)
    {
    Console.WriteLine("{0}:{1}",j,str1[j]);
    j++;
    }
    Console.Read();
    }
    }
    }
    其他人氣:592 ℃時(shí)間:2020-04-07 02:54:11
    優(yōu)質(zhì)解答
    str1 = newstr.Split(tor); 這行 換成
    str1 = newstr.ToString().Split(tor);
    我來(lái)回答
    類(lèi)似推薦
    請(qǐng)使用1024x768 IE6.0或更高版本瀏覽器瀏覽本站點(diǎn),以保證最佳閱讀效果。本頁(yè)提供作業(yè)小助手,一起搜作業(yè)以及作業(yè)好幫手最新版!
    版權(quán)所有 CopyRight © 2012-2024 作業(yè)小助手 All Rights Reserved. 手機(jī)版