随笔分类 -  C#技术

技术汇总
摘要:1 取字符串的前i个字符 str=str.Substring(0,i); // or str=str.Remove(i,str.Length-i); 2 去掉字符串的前i个字符: str=str.Remove(0,i); // or str=str.Substring(i); 3 从右边开始取i个字 阅读全文
posted @ 2018-04-26 14:53 Peaceful_Pig 阅读(345) 评论(0) 推荐(0)
摘要:using Huanent.Printer.Models; using System; using System.Collections.Generic; using System.Drawing; using System.Drawing.Printing; using System.Text; 阅读全文
posted @ 2018-04-26 14:49 Peaceful_Pig 阅读(3877) 评论(9) 推荐(1)
摘要:using System; using System.Collections.Generic; using System.Text; using System.Runtime.Serialization.Formatters.Binary; using System.IO; using System.Security.Cryptography; namespace Encryption { ... 阅读全文
posted @ 2017-05-03 15:01 Peaceful_Pig 阅读(1025) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication1{ class Program { //求两个数的奇数范围的和 static void Main(string[] args) { int num1 = int.Parse(Console.ReadLine()); ... 阅读全文
posted @ 2014-01-26 12:15 Peaceful_Pig 阅读(217) 评论(0) 推荐(0)