摘要:
using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace _03StringJoin { class Pr 阅读全文
摘要:
//功能:去除掉"a,b-,cde,!,q,wcdes+-976"中的",+-!",重新组成一个数字符串;如:"abcdeqwcdes976" ; //字符串分割;将"a,b-,cde,!,q,wcdes+-976";string str = "a,b-,cde,!,q,wcdes+-976";st 阅读全文
摘要:
private void SavetxtData_Click(object sender, EventArgs e) { SaveFileDialog saveFileDialog = new SaveFileDialog(); saveFileDialog.Filter = "(*.txt)|*. 阅读全文
摘要:
#region // 1、去掉特殊符号,将字符串反转; 方法1: string str = "AB,CD+E-F+G,HI-J,K-Nansen"; string[] strArr = str.Split(new char[] { ',', '+', '-' }, StringSplitOption 阅读全文
摘要:
//C#字符串反转 1、手动写一个方法 string str = "ABCDEFG"; char[] chsArr = str.ToCharArray(); for (int i = 0; i < chsArr.Length /2; i++) { char temp = chsArr[i]; chs 阅读全文