摘要:
1、函数调用约定一般规定如下三个方面: 1)函数参数的传递顺序和方式; 2)栈的维护; 3)名字修饰的策略。 2、常见的函数调用约定方式: 调用约定 出栈方式 参数传递 名字修饰 cdecl 函数调用方 从右至左的顺序压参数入栈 下划线+函数名 stdcall 函数本身 从右至左的顺序压参数入栈 下 阅读全文
摘要:
1、好友关系设计: CREATE TABLE `character_social` ( `guid` int(10) unsigned NOT NULL DEFAULT '0' COMMENT 'Character Global Unique Identifier', `friend` int(10 阅读全文
摘要:
又名:共享-互斥锁,多读者-单写者锁。 允许多个读者进入临界区,因为只读数据是安全的; 只允许单写者进入临界区。 所以,读者进入临界区时,第一个读者对临界区资源加一次锁,最后一个读者解锁(所以又名:共享锁,读锁);写者进入临界区时,每次都需要对临界区加锁解锁(又名:排他锁,写锁)。 注:semaph 阅读全文
摘要:
1、没有虚继承,没有虚函数的情况: class VB { public: int m_a; //virtual void print() { // cout << "VB" << endl; //} }; class Base : public VB { public: int m_b1; //vi 阅读全文
摘要:
前述: 工作中,发现项目里的进程崩溃时,不会生成core文件,排查顺序:1、查看core文件的生成路径:cat /proc/sys/kernel/core_pattern; 2、查看core信息设置的是否正确:ulimit -a。 经过排查后,我发现我本地的环境没有问题,还写过demo测试,能生成c 阅读全文
摘要:
https://zh.wikipedia.org/wiki/%E5%BF%AB%E9%80%9F%E6%8E%92%E5%BA%8F 递归实现: void swap(int *x, int *y) { int t = *x; *x = *y; *y = t; } void quick_sort_re 阅读全文
摘要:
#include #include int main(int argc, char* argv[]) { char strSource[] = "0x31,0x32,0x33,0x34,0x35,0x36,0x37,0x38,0x39,0x30,0x61,0x62,0x63,0x64,0x65,0x66"; char *pS = strSource; char *pCh; pCh... 阅读全文
摘要:
useradd -m -d /home/changp -Gusers,dialout,video account_name 创建新的账号 passwd account_name 修改指定账号的密码 阅读全文
摘要:
ARGC The number of command line arguments (does not include options to gawk, or the program source). 命令行参数的个数ARGIND The index in ARGV of the current f 阅读全文
摘要:
参考:https://www.cnblogs.com/zz0412/p/svnsync.html https://blog.csdn.net/windone0109/article/details/4040772 1、创建个新的版本库,用来同步之前已有版本库: svnadmin create svn 阅读全文