码迷,mamicode.com
首页 >  
搜索关键字:num lock    ( 23499个结果)
git for windows 无法提交修改的处理
在git for windows里面不能commit修改,提示open shellopen shell以后,使用git add [filename],会报错:fatal: Unable to create './.git/index.lock': File exists. If no other g...
分类:Windows程序   时间:2014-09-02 17:35:05    阅读次数:328
func_num_args, func_get_arg, func_get-args 的区别与用法
func_num_args返回传递给函数的参数个数func_get_args返回一个包含函数参数列表的数组\n"; if ($numargs >= 2) { echo "第2个参数是:" . func_get_arg(1) . "\n"; } $arg_list = ...
分类:其他好文   时间:2014-09-02 17:20:36    阅读次数:166
临界区(Critical Section)的封装和使用示例
向我老大致敬!这个做法其实是抄我老大的。服务器中,多线程经常需要使用临界区,为了简化代码的使用,把临界区封装为 CThreadLockHandle 类,通过封装,使用临界区资源每次只需要一行代码,而且只要确定对象的生存周期,就能完成对临界区资源的自动释放:头文件://thread_lock.h#if...
分类:其他好文   时间:2014-09-02 15:34:04    阅读次数:309
7.24 数据类型运算符 补码
数据类型:long 32位4个字节 64位8个字节 vs2013 4个字节long long 8个字节float 4个字节double 8个字节%x和%p的区别:int main(){int num = 256;printf("%p\n",&num); //0107FAFCprintf("%#p\n...
分类:其他好文   时间:2014-09-02 15:32:54    阅读次数:233
结构体转化成字符数组
昨天晚上在解决通过socket发送结构体的问题的时候,知道了可以将结构体先转化成字符串的形式再发送,但今天之前一直有个疑问没有解决(为了方便描述,去掉socket部分),首先看下代码: #include #include #include typedef struct info { char name[5]; char num[10]; }INFO; int main() { I...
分类:其他好文   时间:2014-09-02 14:18:04    阅读次数:172
Go語言系統編程如何取得命令行參數或系統環境變量
首先取得命令行參數: 用法如下: root@centos:~/code/go/self$ ./sum 1 2 4 package main import "fmt" import "os" import "strconv" func main() int{ arg_num := len(os.Args) fmt.Printf("the num of input is ...
分类:其他好文   时间:2014-09-02 14:17:44    阅读次数:120
how to trace the error log
Executed as user: WTC\Ebw.Admin. Transaction (Process ID 95) was deadlocked on lock resources with another process and has been chosen as the deadlock...
分类:其他好文   时间:2014-09-02 12:19:24    阅读次数:200
TreeSegment2299
题目大意:给出长度为n的序列,每次只能交换相邻的两个元素,问至少要交换几次才使得该序列为递增序列。#include#include#include#definemem(a)memset(a,0,sizeof(a))#defineMIN(a,b)((a)>1;if(num>1;intans=0;if(...
分类:其他好文   时间:2014-09-02 10:13:04    阅读次数:307
tmp_table_size ---> 优化 MYSQL 经验总结
数据库连接突然增多到1000的问题查看了一下,未有LOCK操作语句。但是明显有好多copy to tmp table的SQL语句,这条语读的时间比较长,且这个表会被加读锁,相关表的update语句会被排进队列。如果多执行几次这样的copyt to tmp table 语句,会造成更多的语句被阻塞。连...
分类:数据库   时间:2014-09-02 01:30:03    阅读次数:305
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!