宏定义:其实就是替换作用 #define TRUE 1 //结尾无分号,宏名TRUE,计算机会把所有TRUE替换为1. typedef:定义类的别名 tpyedef unsigned int UInt; //unsigned int类的别名UInt C++11中,用using来定义类的别名: usi ...
分类:
其他好文 时间:
2019-12-12 23:55:50
阅读次数:
143
启动文件. 清理RAM.设置堆栈等.即执行完start.a51后跳转到.c文件的main函数. 和汇编一样,在C中定义的那些变量和数组的初始化就在startup.a51中进行,如果你在定义全局变量时带有数值,如unsigned char data xxx="100";,那startup.a51中就会 ...
分类:
其他好文 时间:
2019-12-12 01:03:27
阅读次数:
106
表名: think_areas 创建表: CREATE TABLE `think_areas` ( `area_id` smallint(6) unsigned NOT NULL auto_increment COMMENT '地区id', `parent_id` smallint(6) unsig ...
分类:
数据库 时间:
2019-12-11 13:31:03
阅读次数:
160
unordered-multiset是不定序关联式容器,其底部是通过哈希表实现功能。 (ps:黑色框就是bucket,白色框即为bucket上挂载的元素) 为了提高查找效率,bucket(篮子)的数量应当大于元素的个数,这是因为在bucket上悬挂的元素是通过单链表串起来的,而且一个unordere ...
分类:
其他好文 时间:
2019-12-10 12:54:58
阅读次数:
82
#include #include #include #include // union semun { // int val; // struct semid_ds *buf; // unsigned short *array; // struct seminfo *__buf; // }; in... ...
分类:
其他好文 时间:
2019-12-08 23:26:08
阅读次数:
122
1.108对应的十六进制形式是( )。 A.B4H B.5CH C.6CH D.63H 2.–1029的16位补码用十六进制表示为( )。 A.8405H B.0405H C.FBFBH D.7BFBH 3.考虑以下C语言代码: short si=–8196; unsigned short usi= ...
分类:
其他好文 时间:
2019-12-07 19:40:02
阅读次数:
1079
[TOC] 语法 c++ 随机数mt19937 `随机数范围unsigned int` complex 浮点数 STL函数 decltype 手动开启Ofast ifdef 进制转换 cmath java `编译 javac Main.java //生成Main.class` 数据类型 `var n ...
分类:
其他好文 时间:
2019-12-04 01:12:25
阅读次数:
149
系统调用流程简述 fork() 函数是系统调用对应的 API,这个系统调用会触发一个int 0x80 的中断; 当用户态进程调用 fork() 时,先将 eax(寄存器) 的值置为 2(即 __NR_fork 系统调用号); 执行 int $0x80,cpu 进入内核态; 执行 SAVE_ALL,保 ...
分类:
系统相关 时间:
2019-12-02 00:49:56
阅读次数:
126
在程序开发过程中,我们经常会用到按位拷贝一串二进制数,在此提供一个按位拷贝的函数给大家参考,函数源码如下: #define char_t char #define uint8_t unsigned char #define int8_t signed char #define uint16_t un ...
分类:
编程语言 时间:
2019-12-01 12:10:00
阅读次数:
89