随笔分类 -  C#

摘要:using System; using System.Net; namespace ConsoleApplication { class Program { static void Main(string[] args) { IPHostEntry ipHost = Dns.GetHostEntry(Dns.GetHost... 阅读全文
posted @ 2017-08-27 15:11 Dsp Tian 阅读(384) 评论(0) 推荐(0)
摘要:using System; using System.Data.OleDb; namespace ConsoleApplication { class Program { static void Main(string[] args) { string strConnection = "Provider = Microso... 阅读全文
posted @ 2017-08-27 15:10 Dsp Tian 阅读(535) 评论(0) 推荐(0)
摘要:using System; using System.Data.SqlClient; namespace ConsoleApplication { class Program { static void Main(string[] args) { SqlConnection con = new SqlConnection(... 阅读全文
posted @ 2017-08-27 15:10 Dsp Tian 阅读(615) 评论(0) 推荐(0)
摘要:using System; namespace ConsoleApplication { class Program { static void Main(string[] args) { string a = "1234"; int b = Convert.ToInt32(a)+1; ... 阅读全文
posted @ 2017-08-27 15:09 Dsp Tian 阅读(401) 评论(0) 推荐(0)
摘要:using System; using System.Media; namespace ConsoleApplication { class Program { static void Main(string[] args) { SoundPlayer s = new SoundPlayer("test.wav"); ... 阅读全文
posted @ 2017-08-27 15:09 Dsp Tian 阅读(2605) 评论(1) 推荐(0)
摘要:using System; namespace ConsoleApplication { class stu { private string name; private int age; public stu() { name = ""; age = -1; ... 阅读全文
posted @ 2017-08-27 15:09 Dsp Tian 阅读(403) 评论(0) 推荐(0)
摘要:using System; namespace ConsoleApplication { class Program { static void Print(int a, int b) { Console.Write(a + b); } static void Print(string a... 阅读全文
posted @ 2017-08-27 15:08 Dsp Tian 阅读(398) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; namespace ConsoleApplication { class Program { static void Main(string[] args) { Dictionary a = new Dictionary(); ... 阅读全文
posted @ 2017-08-27 15:07 Dsp Tian 阅读(726) 评论(0) 推荐(0)
摘要:using System; using System.IO; namespace ConsoleApplication { class Program { static void Main(string[] args) { FileStream file = new FileStream("log.txt", FileMo... 阅读全文
posted @ 2017-08-27 15:07 Dsp Tian 阅读(353) 评论(0) 推荐(0)
摘要:using System; using System.IO; namespace ConsoleApplication { class Program { static void Main(string[] args) { FileStream file = new FileStream("log.txt", FileMo... 阅读全文
posted @ 2017-08-27 15:07 Dsp Tian 阅读(400) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; namespace ConsoleApplication { class Program { static void Main(string[] args) { LinkedList a = new LinkedList(); ... 阅读全文
posted @ 2017-08-27 15:06 Dsp Tian 阅读(8366) 评论(0) 推荐(0)
摘要:using System; using System.Collections.Generic; namespace ConsoleApplication { class Program { static void Main(string[] args) { List a = new List(); ... 阅读全文
posted @ 2017-08-27 15:05 Dsp Tian 阅读(1950) 评论(0) 推荐(0)
摘要:using System; namespace ConsoleApplication { struct _st { public string name; public int age; } class Program { static void Print(_st a) { ... 阅读全文
posted @ 2017-08-27 15:04 Dsp Tian 阅读(444) 评论(0) 推荐(0)
摘要:using System; namespace ConsoleApplication { class Program { static void Main(string[] args) { //int[] a=new int[3]; //一维数组 int[,] a = new int[3,3]... 阅读全文
posted @ 2017-08-27 15:02 Dsp Tian 阅读(390) 评论(0) 推荐(0)
摘要:using System; namespace ConsoleApplication { class Program { static int Add(int a, int b) { return a + b; } static void Main(string[] args) ... 阅读全文
posted @ 2017-08-27 15:02 Dsp Tian 阅读(675) 评论(0) 推荐(0)
摘要:using System; namespace ConsoleApplication { class Program { static void Main(string[] args) { Console.Write("Hello World!"); Console.Read(); ... 阅读全文
posted @ 2017-08-27 15:01 Dsp Tian 阅读(436) 评论(0) 推荐(0)