随笔分类 -  C#

摘要:using System; using System.Net; using System.Net.Mail; using System.Text; namespace ConsoleApplication { class Program { static void Main(string[] args) { MailMes... 阅读全文
posted @ 2017-08-27 15:11 Dsp Tian 阅读(514) 评论(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; 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 阅读(536) 评论(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 阅读(2607) 评论(1) 推荐(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 阅读(403) 评论(0) 推荐(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 阅读(399) 评论(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 阅读(356) 评论(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 阅读(727) 评论(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 阅读(403) 评论(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 阅读(8369) 评论(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 阅读(1952) 评论(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 阅读(446) 评论(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 阅读(676) 评论(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 阅读(437) 评论(0) 推荐(0)