dedecms :后台单页模板调用 文章主表: CREATE TABLE `dede_archives` ( `id` mediumint(8) unsigned NOT NULL DEFAULT '0', `typeid` smallint(5) unsigned NOT NULL DEFAULT ...
分类:
其他好文 时间:
2020-05-10 01:01:05
阅读次数:
58
一、不带初值的变量或数组 直接使用_at_ 关键字加上地址就行。 如: unsigned char idata myvar _at_ 0x40; unsigned char code myvar[10] _at_ 0x40; _at_ 关键字的前后都有空格。 二、带初值的变量或数组 要将某变量定位在 ...
分类:
编程语言 时间:
2020-05-08 00:24:40
阅读次数:
102
代码 include include include typedef unsigned char char_point; / 判断机器类型,大端机返回0, 小端机返回1,其他返回 1 author : date : 2020 5 7 20:54:03 / int is_little_endian(v ...
分类:
其他好文 时间:
2020-05-07 23:06:54
阅读次数:
87
htonl()函数 将主机的unsigned long值转换成为网络字节顺序(32位)(一般这几跟网络上传输的字节顺序是不通的, 分大小端),函数返回一个网络字节顺序的数字。 #include "stdafx.h" #include<stdio.h> #include<WinSock2.h> #pr ...
分类:
其他好文 时间:
2020-05-07 15:36:47
阅读次数:
82
void br_set_state(struct net_bridge_port *p, unsigned int state) { struct switchdev_attr attr = { .orig_dev = p->dev, .id = SWITCHDEV_ATTR_ID_PORT_STP ...
分类:
其他好文 时间:
2020-05-06 13:57:10
阅读次数:
64
[TOC] 无符号数和有符号数相加 题目 int main() { unsigned int a = 6; int b = 20; (a + b 6) ? puts(" 6") : puts("<6"); // a+b 按无符号数计算,结果为无符号数 printf("a+b=%d\n",(a+b)) ...
分类:
编程语言 时间:
2020-05-05 17:37:42
阅读次数:
62
【目录】 一 存储引擎介绍 二 表介绍 三 创建表 四 查看表结构 五 数据类型 1、介绍 2、数值类型 3、日期类型 4、字符串类型 5、枚举类型与集合类型 六 表完整性约束 1、介绍 2、not null与default 3、 unique 4、primary key 5、auto_increm ...
分类:
数据库 时间:
2020-05-05 12:27:23
阅读次数:
71
Just a Hook HDU - 1698 In the game of DotA, Pudge’s meat hook is actually the most horrible thing for most of the heroes. The hook is made up of sever ...
分类:
其他好文 时间:
2020-05-05 00:29:03
阅读次数:
57
```c /*按键的键位定义*/ unsigned char code anj[4][4] = { 1, 2, 3, 10, 4, 5, 6, 11, 7, 0, 9, 12, 13, 8, 14, 15, }; char ScanKey() { char key = -1;//赋值用于判读没有按下... ...
分类:
其他好文 时间:
2020-05-04 00:48:02
阅读次数:
60
通过mysql的数值类型设置,控制数值的正负 1,如何使用 在mysql的编辑器中,可以直接定义 bigint(20) unsigned 2, 发挥的作用 一般默认定义的数据类型为signed(有符号类型),取值返回包含有负数范围,一般正负值的差依然等于无符号类型的范围的上限值。 当定义为unsig ...
分类:
数据库 时间:
2020-05-03 18:38:25
阅读次数:
175