摘要: 1、元字符 .匹配除换行符以外的任意字符 \w匹配字母或数字或下划线或汉字 \s匹配任意的空白符 \d匹配数字 \b匹配单词的开始或结束 ^匹配字符串的开始 $匹配字符串的结束 2、重复 *重复零次或更多次 +重复一次或更多次 ?重复零次或一次 {n}重复n次 {n,}重复n次或更多次 {n,m}重 阅读全文
posted @ 2016-07-01 09:42 蓝亭赏月 阅读(156) 评论(0) 推荐(0)
摘要: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 6 namespace Bus 7 { 8 class Program 9 { 10 //站点2------->站点112 11 static void Main(string[] args) 12 { 13 List carlist = new List(); 14 ca... 阅读全文
posted @ 2013-10-09 11:14 蓝亭赏月 阅读(273) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace zyl{ namespace Html { public class Tree { private List list = new List(); public Tree(List list) { this.list = list; } ... 阅读全文
posted @ 2013-10-09 10:59 蓝亭赏月 阅读(1685) 评论(0) 推荐(0)
摘要: using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Linq;using System.Text;using System.Windows.Forms;using System.Threading;namespace WindowsFormsApplication1{ public partial class Form1 : Form { public Form1() { InitializeCo 阅读全文
posted @ 2012-12-04 20:56 蓝亭赏月 阅读(151) 评论(0) 推荐(0)
摘要: [DllImport("kernel32")]//获取ini数据 private static extern int GetPrivateProfileString(string section,string key,string def,StringBuilder retVal,int size,string filePath); [DllImport("kernel32")]//把数据写到ini private static extern int WritePrivateProfileString(string section, string key 阅读全文
posted @ 2012-06-19 11:56 蓝亭赏月 阅读(167) 评论(0) 推荐(0)
摘要: 1.定位服务 GeoPositionAccuracy accuracy = GeoPositionAccuracy.Default; GeoCoordinateWatcher watcher = new GeoCoordinateWatcher(); watcher.StatusChanged += new EventHandler<GeoPositionStatusChangedEventArgs>(watcher_StatusChanged); watcher.Start(); MessageBox.Show(str); private void watcher_Positio 阅读全文
posted @ 2012-05-31 18:12 蓝亭赏月 阅读(173) 评论(0) 推荐(0)
摘要: //DownloadProgressChanged //DownloadStringCompleted //OpenReadCompleted //OpenWriteCompleted //UploadProgressChanged //UploadStringCompleted // WriteStreamClosed // DownLoadStringAsnc //OpenReadAsync //UpLoadStringAsync //OpenWriteAsync WebClient client = new WebClient(); if (client.IsBusy) clien... 阅读全文
posted @ 2012-05-31 18:03 蓝亭赏月 阅读(271) 评论(0) 推荐(0)
摘要: 下载地址getCOn静态类public string getCon.connectionString(string configConnectionStringsName, out string provider) 从web.Config里获取数据库的连接字符DataOperate 类构造函数 public DataOperate(string provider , string cons, string developerWeb)方法public int excuteCommand(string str) 执行sql语句,返回受影响的行数public int excuteCommand... 阅读全文
posted @ 2012-03-27 15:22 蓝亭赏月 阅读(1210) 评论(6) 推荐(0)
摘要: 在博客园里也算有二个多月了,在这里我学到了很多东西,也想把自己学到的东西分享给大家,说到网络编程其实自己也是没学到什么高深的东西,只是个人兴趣粗略的看了一下,一路都是自己摸索过来的。说得不好请大家不要在意,毕竟还没有大学毕业,老师也没有讲到这门课程。这完全是个人理解。 【说到他的原理我觉得他有点像文件的读写操作】【发送内容】当我们要保存文字的内容时,我们首先是声明一个filestream,然后通过他的write()方法把内容写到文本里面去。基于p2p,内容的发送也一样,有点像文本的写入,而不同的是,这里用到NetworkStream网络工作流这一东西,然后再通过StreamWriter的wr. 阅读全文
posted @ 2012-01-01 03:33 蓝亭赏月 阅读(6074) 评论(12) 推荐(5)
摘要: View Code 1 drop database 学生成绩管理数据库 2 create database 学生成绩管理数据库 3 on primary 4 ( 5 name='学生成绩管理_data', 6 filename='c:\学生成绩管理_data.mdf', 7 size=10, 8 maxsize=unlimited, 9 filegrowth=10% 10 ) 11 log on 12 ( 13 name='学生成绩管理_log', 14 filename='c:\学生成绩管理_log.ldf', 15 size= 阅读全文
posted @ 2011-12-30 22:49 蓝亭赏月 阅读(198) 评论(0) 推荐(0)