#include union { struct{ unsigned char c1:3; unsigned char c2:3; unsigned char c3:2; }s; unsigned char c;}u;int main (int argc, char **argv){ u.c=100;...
分类:
其他好文 时间:
2014-11-19 23:48:34
阅读次数:
189
ifneq ($(KERNELRELEASE),)obj-m := hello.ohello-objs := main.o add.oelseKDIR := /lib/modules/2.6.18-53.el5/buildall: make -C $(KDIR) M=$(PWD) modules A...
分类:
其他好文 时间:
2014-11-19 23:49:41
阅读次数:
221
最近装了一个Ubuntu系统 在配置tomcat的时候总是出现这样的问题Could not load the Tomcat server configuration at /Servers/Tomcat v7.0 Server at localhost-config. The configurati...
分类:
其他好文 时间:
2014-11-19 23:49:19
阅读次数:
2597
Browse_button:触发浏览文件按钮标签的唯一id,,在flash、html5、和silverlight中能找到触发事件的源(我理解的,这个参数在队列部件不需要参见) Container: 展现上传文件列表的容器,[默认是body]chunk_size:当上传文件大于服务器接收端文件大小限....
分类:
其他好文 时间:
2014-11-19 23:46:58
阅读次数:
342
TCP是主机对主机层的传输控制协议,提供可靠的连接服务,采用三次握手确认建立一个连接:每一次TCP连接都需要三个阶段:连接建立、数据传送和连接释放。“三次握手”就发生在连接建立阶段。三次握手(three times handshake)所谓的“三次握手”即对每次发送的数据量跟踪进行协商使数据段的发送...
分类:
其他好文 时间:
2014-11-19 23:47:09
阅读次数:
319
Maven坐标为各种构件引入秩序,每个构件都必须明确自己的坐标。Maven坐标通过groupId、artifactId、version、packaging、classifier定义。 org.sonatype.nexus nexus-indexer 2.0.0groupId:定义当...
分类:
其他好文 时间:
2014-11-19 23:48:48
阅读次数:
272
1.进程有哪几种状态、状态转换图及导致转换的事件?状态:(1).就绪态:进程已获得 处理机外的所需资源,等待分配处理机资源(时间片),只要分配到即可执行。在某一状态,可能有若干进程处于该状态。(2).运行态:占用处理机资源运行处于此状态的进程的数目小于等于cpu 的数目。(3).阻塞态:由于进程等待...
分类:
其他好文 时间:
2014-11-19 23:47:16
阅读次数:
569
Given a binary tree, find its maximum depth.The maximum depth is the number of nodes along the longest path from the root node down to the farthest le...
分类:
其他好文 时间:
2014-11-19 23:46:55
阅读次数:
247
最近数据库和编译的实验课也开始了,大家晚上的时间直接被砍掉了大部分。希望大家能顺利完成项目吧。剩下时间也不多了,如果程序还存在一些特别的问题和需要优化修改的地方也应该考虑留到下阶段进行了。 MemberToday’s taskNext task林豪森与其他小组商讨整合问题检测功能完整性,处理整合.....
分类:
其他好文 时间:
2014-11-19 23:47:23
阅读次数:
285
platform_device:#include #include #include #include #include #include #include #include #define DEVICE_NAME "ok6410_plat_btn"/*平台资源的定义,按键中断*/static st...
分类:
其他好文 时间:
2014-11-19 23:46:02
阅读次数:
255
给定一个只含0和1的数组,求含1的最大矩形面积。Given a 2D binary matrix filled with 0's and 1's, find the largest rectangle containing all ones and return its area.这样的题一般看来都...
分类:
其他好文 时间:
2014-11-19 23:44:02
阅读次数:
316
#include struct file_operations { struct module *owner; loff_t (*llseek) (struct file *, loff_t, int); ssize_t (*read) (struct file *, char __user *, ...
分类:
其他好文 时间:
2014-11-19 23:45:41
阅读次数:
242
实现字符串按特定分隔符(, \t)进行分割,并将分割的后的字符串存在到vector中,用于处理txt、csv等格式的文件。void split_string(const string & str, vector & str_vec, char delimiter){ if (str.empty())...
分类:
其他好文 时间:
2014-11-19 23:44:19
阅读次数:
204
像我这样的码农,从来都不会关注一些概念,在我的脑海中,这些都是搞学术研究或者备战考研需要掌握的东西,而我这样的一线码农,具备实战经验和编码技巧就行了。究竟是不是这样理解的,姑且不去讨论,既然说是从基础走起,那就从概念说起。 数据结构课程:是一门研究非数值计算的程序设计问题中的操作对象,以及...
分类:
其他好文 时间:
2014-11-19 23:44:26
阅读次数:
239
#include #define min(a,b) ((a)<=(b)?(a):(b))int main (int argc, char **argv){ char *p = "abcdefgh"; printf("%c\n",min(*p++,'c')); //宏被扩展为 ( *p++ <= c ...
分类:
其他好文 时间:
2014-11-19 23:44:58
阅读次数:
209
A -棋盘问题Time Limit:1000MSMemory Limit:10000KB64bit IO Format:%I64d & %I64uSubmitStatusPracticePOJ 1321Description在一个给定形状的棋盘(形状可能是不规则的)上面摆放棋子,棋子没有区别。要求摆...
分类:
其他好文 时间:
2014-11-19 23:43:16
阅读次数:
257
虚拟机上装了一个 Linux 玩玩, 但在启动 Linux 后,在 Windows 中通过 Xshell 以 SSH 方式连接到 Linux 时却连接不上,于是打开 CMD 窗口,输入了ping 192.168.220.128,返回结果显示可以拼通:Pinging 192.168.220.128 w...
分类:
其他好文 时间:
2014-11-19 23:43:22
阅读次数:
222