摘要:
StringBuilder sb = new StringBuilder("hello"); sb.Append("world");//拼接 sb.Insert(5,",");//插入 sb.Replace(",","-");//替换 //sb.Remove(2,3);//删除... 阅读全文
摘要:
//两值交换 public static void Show(ref int num1,ref int num2) { int num=num1; num1=num2; num2=num; } static void Mian(string [] args) { int num1=7; int num2=4; console.WritLine("交换前,num1:{0},num2:{1}",n... 阅读全文