摘要: #include #include #include #include #include #include #include int main( ) { pid_t pid1,pid2; int pipe_fd[2]; char w_buffer[100],r_buffer[100]; int len1,len2; /*创建... 阅读全文
posted @ 2016-04-14 21:16 文洁丫头 阅读(602) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #define N1 3//定义3个生产者 #define N2 4//定义4 个消费者 #define M 10//定义10个大小缓冲区 int in = 0; int out = 0; int buff[M] = {0};//缓冲区大小为10 sem_t empty_sem;//空... 阅读全文
posted @ 2016-04-14 21:15 文洁丫头 阅读(937) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include #include #include #include #define NUM_THREADS_P 5 #define CHAIR_NUM 4 #define CHOP_NUM 5 int chairflg[CHAIR_NUM][2],dining_num = 0; ... 阅读全文
posted @ 2016-04-14 20:14 文洁丫头 阅读(909) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include //筷子作为mutex pthread_mutex_t chopstick[6] ;//定义以筷子为锁的数组 void *eat_think(void *arg) { char phi = *(char *)arg; //将任意类型的指针*arg转化为*char类型 ... 阅读全文
posted @ 2016-04-14 20:13 文洁丫头 阅读(3743) 评论(0) 推荐(0) 编辑
摘要: 一。删除 1. 2. 3. 二。插入 1. 2. 三 编辑 1. 确保 编辑的对象是所选对象,所以传入参数要注意,并且编辑时要先填充控件。 2,。 四,根据Index的值 来判断要编辑item还是要新增item。 此步是获得index,前提是父窗口或者子窗口已经传入一个带参。 此步是提交按钮的事件。 阅读全文
posted @ 2016-04-04 11:57 文洁丫头 阅读(1180) 评论(0) 推荐(0) 编辑
摘要: private void button1_Click(object sender, RoutedEventArgs e) { string pwdregex = "^[a-zA-Z0-9]{6,12}$"; System.Text.RegularExpressions.Regex regPwd = new Syste... 阅读全文
posted @ 2016-04-04 10:55 文洁丫头 阅读(5116) 评论(0) 推荐(0) 编辑
摘要: private static string[] strChineseCharList = { #region "A阿啊锕嗄厑哎哀唉埃挨溾锿鎄啀捱皑凒溰嘊敳皚癌毐昹嗳矮蔼躷噯藹譪霭靄艾伌爱砹硋隘嗌塧嫒愛碍暧瑷僾壒嬡懓薆曖璦鴱皧瞹馤鑀鱫安侒峖桉氨庵谙萻腤鹌蓭誝鞌鞍盦馣鮟盫韽啽雸垵" , "A俺唵埯铵隌揞罯銨犴岸按荌案胺豻堓婩暗貋儑錌黯肮岇昂昻枊盎醠凹坳垇柪軪爊敖厫隞嗷嗸嶅廒... 阅读全文
posted @ 2016-04-04 10:30 文洁丫头 阅读(31321) 评论(0) 推荐(0) 编辑
摘要: 前台端 后台代码段 WJKCDataContext wjkc = new WJKCDataContext(); cmb_SSBM.ItemsSource = wjkc.BMDA.ToList(); wjkc.Dispose(); 阅读全文
posted @ 2016-03-30 21:50 文洁丫头 阅读(1658) 评论(0) 推荐(0) 编辑
摘要: 一。第一种方式 USE [WJKC]GO/****** Object: StoredProcedure [dbo].[Address_GetCode1] Script Date: 2016/3/29 星期二 下午 10:20:47 ******/SET ANSI_NULLS ONGOSET QUOT 阅读全文
posted @ 2016-03-29 22:26 文洁丫头 阅读(840) 评论(0) 推荐(0) 编辑
摘要: 一直很讨厌存储过程,没想到今天帮了我大忙啊,或许会因为今天让我慢慢喜欢上存储过程吧,不多说了,切入正题 一直很讨厌存储过程,没想到今天帮了我大忙啊,或许会因为今天让我慢慢喜欢上存储过程吧,不多说了,切入正题 在使用数据库的时候,难免要在使用过程中进行删除的操作,如果是使用int类型的字段,令其自增长 阅读全文
posted @ 2016-03-29 20:08 文洁丫头 阅读(5720) 评论(0) 推荐(0) 编辑