一:vmallochttp://www.360doc.com/content/14/0614/13/18127083_386524093.shtml1,vmalloc()的内核入口函数是kernel/mm/Vmalloc.c里的void *vmalloc(unsigned long size),si...
分类:
系统相关 时间:
2015-01-26 20:56:38
阅读次数:
292
#include
#define uchar unsigned char
#define uint unsigned int
sbit rs=P3^5;
sbit lcden=P3^4;
sbit dula=P2^6;
sbit wela=P2^7;
uchar table1[]="TX-51STAR MCU";
uchar table2[]="WWW.TXMCU.COM";
void delay...
分类:
其他好文 时间:
2015-01-26 17:07:57
阅读次数:
183
#include
#define set_bit1(x,y) (x|=(0x01L<<y))
#define set_bit0(x,y) (x&=(~(0x01L<<y)))
#define get_bit(x,y) (x&(0x01L<<y))
int main()
{
int pos = 31;
unsigned long bitmap = 0xffffff...
分类:
其他好文 时间:
2015-01-26 17:03:02
阅读次数:
238
#include
#include
typedef unsigned char UINT8;
typedef unsigned int UINT16;
UINT8 num = 0, temp = 0, key = 16, t0 = 0, t1 = 0, shu = 0;
/* 数码管编码 */
UINT8 code table[]=
{
0x3f,0x06,0x5b,0x4f,
0x...
分类:
其他好文 时间:
2015-01-26 13:40:44
阅读次数:
123
串口最基本的设置包括波特率 校验位 和停止位。主要是设置个结构体的成员值,#include struct termio {unsigned short c_iflag; /*输入模式标志*/unsigned short c_oflag; /*输出模式标志*/unsigned short c_cfla...
分类:
系统相关 时间:
2015-01-24 22:46:38
阅读次数:
202
1 #include 2 //#include "红外.h" 3 #include 4 //extern unsigned char flag,MODEL,gears,c,rev,set_temperature; 5 #define uchar unsigned char 6 v...
分类:
其他好文 时间:
2015-01-24 18:35:38
阅读次数:
178
一、C语言数据类型
1.数据类型
2.数据修饰符
数值类型的数据前面,还可以添加修饰符,用来改变数据类型的容量。
long:长型符
short:短型符
signed:有符号位
unsigned:无符号位
二、编译和运行指令
编译环境为:WinGW
配置环境变量:path后添加D:\MinGW\bin
进入.c文件所在目录
编译:gcc -c example.cp...
分类:
编程语言 时间:
2015-01-24 17:28:42
阅读次数:
179
引用题解:http://hzwer.com/5153.html当然,二分可以换成哈希表。#include#include#includeusing namespace std;#define MOD 2501typedef unsigned long long ull;const ull seed1...
分类:
Web程序 时间:
2015-01-24 12:54:44
阅读次数:
207
引用题解:http://blog.csdn.net/popoqqq/article/details/41084047#include#includeusing namespace std;typedef unsigned long long ull;int n,m,a,b,q;const ull s...
分类:
其他好文 时间:
2015-01-24 11:29:45
阅读次数:
182
数据类型分5类:整数、数值、字符相关、日期时间以及二进制1.整数数据库系统类型说明MYSQLtinyint [unsigned]一个很小的整数。有符号的范围是-128 到127,无符号的范围是0 到255。smallint [unsigned]一个小整数。有符号的范围是-32768到32767,无符...
分类:
数据库 时间:
2015-01-24 10:09:04
阅读次数:
278