04 2016 档案

摘要:参考:http://www.cnblogs.com/peida/archive/2008/08/11/1263384.html Count/Sum/Min/Max/Avg用于统计数据,比如统计一些数据的个数,求和,最小值,最大值,平均数。 1.Count:返回集合中的元素个数,返回INT类型;不延迟 阅读全文
posted @ 2016-04-18 18:58 文洁丫头 阅读(319) 评论(0) 推荐(0) 编辑
摘要:#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 文洁丫头 阅读(605) 评论(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 文洁丫头 阅读(945) 评论(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 文洁丫头 阅读(912) 评论(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 文洁丫头 阅读(3764) 评论(0) 推荐(0) 编辑
摘要:一。删除 1. 2. 3. 二。插入 1. 2. 三 编辑 1. 确保 编辑的对象是所选对象,所以传入参数要注意,并且编辑时要先填充控件。 2,。 四,根据Index的值 来判断要编辑item还是要新增item。 此步是获得index,前提是父窗口或者子窗口已经传入一个带参。 此步是提交按钮的事件。 阅读全文
posted @ 2016-04-04 11:57 文洁丫头 阅读(1184) 评论(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 文洁丫头 阅读(5175) 评论(0) 推荐(0) 编辑
摘要:private static string[] strChineseCharList = { #region "A阿啊锕嗄厑哎哀唉埃挨溾锿鎄啀捱皑凒溰嘊敳皚癌毐昹嗳矮蔼躷噯藹譪霭靄艾伌爱砹硋隘嗌塧嫒愛碍暧瑷僾壒嬡懓薆曖璦鴱皧瞹馤鑀鱫安侒峖桉氨庵谙萻腤鹌蓭誝鞌鞍盦馣鮟盫韽啽雸垵" , "A俺唵埯铵隌揞罯銨犴岸按荌案胺豻堓婩暗貋儑錌黯肮岇昂昻枊盎醠凹坳垇柪軪爊敖厫隞嗷嗸嶅廒... 阅读全文
posted @ 2016-04-04 10:30 文洁丫头 阅读(31382) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示