摘要: 转自:http://blog.csdn.net/sszgg2006/article/details/9037675 首先看以下程序: [cpp] view plain copy #include <stdio.h> int *swap(int *px, int *py){ int temp; tem 阅读全文
posted @ 2018-03-15 21:20 23hour 阅读(5302) 评论(0) 推荐(0)
摘要: 堆区和栈区的区别 转自:https://www.cnblogs.com/zlcxbb/p/5752144.html C++程序内存布局: 代码区(code area) 程序内存空间 全局数据区(data area) 堆区(heap area) 栈区(stack area) 一个由C/C++编译的程序 阅读全文
posted @ 2018-03-15 20:40 23hour 阅读(14369) 评论(1) 推荐(0)
摘要: TCP通信 (一) tcp实验 ip 用途,唯一识别机器 port 用来绑定程序,即端口用来识别程序 服务端 //1.创建socket #include <sys/types.h> //常用类型 #include <sys/socket.h> //socket函数等 int socket(int d 阅读全文
posted @ 2018-02-01 16:31 23hour 阅读(201) 评论(0) 推荐(0)
摘要: 转自:https://www.cnblogs.com/ynxf/p/6105072.html 打开串口 在Linux系统下,打开串口是通过使用标准的文件打开函数操作的。 #include <fcntl.h> /* 以读写的方式打开 */ int fd = open( "/dev/ttyUSB0",O 阅读全文
posted @ 2018-02-01 16:08 23hour 阅读(177) 评论(0) 推荐(0)
摘要: 什么是系统调用? 【转自:https://woshijpf.github.io/%E5%86%85%E6%A0%B8/2016/05/10/Linux-%E7%B3%BB%E7%BB%9F%E8%B0%83%E7%94%A8%E5%86%85%E6%A0%B8%E6%BA%90%E7%A0%81%E 阅读全文
posted @ 2018-01-18 16:10 23hour 阅读(2803) 评论(0) 推荐(0)
摘要: linux内核学习中-- 史上最全 linux通用链表“list.h”详解 Linux内核链表深度分析 最近几天在学习linux内核,接触到“list.h”文件,学习了几天,在这里做一下总结。也在网上学习了很多前人的工作。好像大家的工作都比较零散,每个人都是仅仅解释了某几个函数。为了以后大家学习方便 阅读全文
posted @ 2017-11-04 23:17 23hour 阅读(485) 评论(0) 推荐(0)
摘要: (翻译自: linux-2.6.30\Documentation\kbuild\makefiles.txt) Linux 2.6 内核Makefile 1概述 Makefile由五个部分组成: kernel Makefile,又叫top makefile,位于linux内核源代码的顶层目录,通过读取 阅读全文
posted @ 2017-10-24 20:05 23hour 阅读(640) 评论(0) 推荐(0)
摘要: 转自:http://www.cnblogs.com/Daniel-G/archive/2013/08/27/3284791.html 当执行#make menuconfig时会出现内核的配置界面,所有配置工具都是通过读取"arch/$(ARCH)Kconfig"文件来生成配置界面,这个文件就是所有配 阅读全文
posted @ 2017-10-24 16:13 23hour 阅读(402) 评论(0) 推荐(0)
摘要: Window public abstract class Window extends Object Abstract base class for a top-level window look and behavior policy. An instance of this class shou 阅读全文
posted @ 2017-07-19 12:00 23hour 阅读(1836) 评论(0) 推荐(0)
摘要: 来自 http://www.cnblogs.com/bluestorm/p/3644669.html Android中的颜色设置 1、在android中经常看到设置的颜色为八位的十六进制的颜色值,例如: 1 2 3 public static final class color { public s 阅读全文
posted @ 2017-07-19 11:35 23hour 阅读(347) 评论(0) 推荐(0)
Edit