1 string a = "33*33"; 2 string[] strarr = a.Split('*'); 3 int[] intarr = new int[strarr.Length]; 4 for (int i = 0; i < strarr.Length; i++) 5 { 6 intarr[i] = int.Parse(strarr[i]); 7 }
1 string a = "33*33"; 2 string[] strarr = a.Split('*'); 3 int[] intarr = new int[strarr.Length]; 4 for (int i = 0; i < strarr.Length; i++) 5 { 6 intarr[i] = int.Parse(strarr[i]); 7 }
转载于:https://www.cnblogs.com/GeDiao/p/4103485.html