摘要:
usingSystem;usingSystem.Collections.Generic;usingSystem.ComponentModel;usingSystem.Data;usingSystem.Drawing;usingSystem.Linq;usingSystem.Text;usingSystem.Windows.Forms; namespaceWindowsFormsApplication2{publicpartialclassForm1:Form{privateList<string>listNames=newList<string>();publicFor 阅读全文
摘要:
using System;using System.Linq;using System.Runtime.InteropServices;namespace ConTest{ class Program { static void Main(string[] args) { Implement im = new Implement(); im.IAnimalEat(); im.IAnimalWalk(); im.IManagerSleep(); im.IPeopleShow(); Console.Read(); } } interface IAnimal { void IAnimal... 阅读全文
摘要:
sing System;using System.Linq;using System.Runtime.InteropServices;namespace ConTest{ class Program { public EventHandler ContentViewActive = delegate { }; static void Main(string[] args) { Program p = new Program(); p.ContentViewActive += delegate { Console.WriteLine("Welcome"); Console.W 阅读全文
摘要:
private static void ShowReverse(string t, int len) { int index = 0; int count = 0; string str = string.Empty; count = t.Length / len; for (int i = 0; i < len; i++) { str = string.Empty; index = i; for (int j = 0; j < count; j++) { str += t.Substring(index, 1); index += 5; } Console.WriteLine(s 阅读全文