char[] delimit = new char[] { ' ' }; string s10 = "The cat sat on the mat."; foreach (string substr ins10.Split(delimit)) { System.Console.WriteLine(substr); } //-------------------------------输出结果------------------------------------------// The cat sat on the mat. //-------------------------------输出结果------------------------------------------//
|