转载自 http://condor.depaul.edu/glancast/374class/docs/csapp_compile_guide.html Compiling with the CSAPP library The csapp collection of useful auxilliary functions are declared in the file csapp.h and defined in the csapp.c file. These functions incl…
简单理解Struts2中拦截器与过滤器的区别及执行顺序 当接收到一个httprequest , a) 当外部的httpservletrequest到来时 b) 初始到了servlet容器 传递给一个标准的过滤器链 c) FilterDispatecher会去查找相应的ActionMapper,如果找到了相应的ActionMapper它将会将控制权限交给ActionProxy d) ActionProxy将会通过ConfigurationManager来查找配置struts.xml …
深入理解计算机各种类型大小(sizeof) // Example of the sizeof keyword size_t i = sizeof( int ); struct align_depends { char c; int i; }; size_t size = sizeof(align_depends); // The value of size depends on // the value set with /Zp or // #pragma pack int arr…
problom : 'f1' value hava been changed when output. reason : the binary repersentation of 2.2f is : 00110011001100110011... (is an infinite recurring decimal) but computer only store 24 byte , so discard the remaining number , lead to the value has b…
ls 的输出会因各 Linux 版本变种而略有差异,这里只讨论一般情况下的输出. 下面是来自 man page 关于 ls 的描述: $ man ls ls - list directory contents 列出文件夹中的内容. 但一般我们会配合着 -l 参数使用,将输出展示成列表形式. 在 ls 的 man page 中搜索 -l 可看到该参数的意义: -l use a long listing format 列表形式下看到的输出大概成这样: -rwxrw-r-- 10 root root…