码迷,mamicode.com
首页 > 其他好文
《大话操作系统——做坚实的工程实践派》(4)
?? 操作系统内核必须要关注一个具体硬件平台的设备...
分类:其他好文   时间:2014-11-12 08:15:29    阅读次数:181
高清简谱:当你老了(赵照)
分类:其他好文   时间:2014-11-12 08:12:36    阅读次数:810
对象内存布局 (4)
内容概要:满足下面2个条件时,1. 父类有虚函数,子类也有虚函数,且子类的虚函数重写或覆盖了父类的虚函数2. 非虚继承类对象之内存布局在前面的例子中,恢复原来的两个虚函数vfBase_1()和vfBase_2(),同时在Derived类中重写基类的虚函数vfBase_1(),Base类和Derive...
分类:其他好文   时间:2014-11-12 08:11:59    阅读次数:155
strcpy实现
实现:char *strcpy(char *strDestination,const char *strSource){assert(strDestination!=NULL && strSource!=NULL);char *strD=strDestination;while ((*strDest...
分类:其他好文   时间:2014-11-12 07:06:47    阅读次数:177
strchr实现
char* strchr(char*s,charc){while(*s!='\0'&&*s!=c){++s;}return*s==c?s:NULL;}// strchr.c查找字符串s中首次出现字符c的位置#include#includechar* my_strchr(const char *s1,...
分类:其他好文   时间:2014-11-12 07:07:15    阅读次数:234
time.h time_t
#include #include #include int main(void){ time_t timer;//time_t就是long int 类型 struct tm *tblock; //time()获取当前的系统时间,返回的结果是一个time_t类型,其实就是一个大整数...
分类:其他好文   时间:2014-11-12 07:08:05    阅读次数:171
高效程序员的45个习惯
本文转载 《高效程序员的45个习惯》一书 目录第1章 敏捷---高效软件开发之道第2章 态度决定一切1.做事2.欲速则不达3.对事不对人4.排除万难,奋勇前进第3章 学无止境5.跟踪变化6.对团队投资7.懂得丢弃8.打破沙锅问到底9.把握开发节奏第4章交付用户想要的软件10.让客户做决定11.让.....
分类:其他好文   时间:2014-11-12 07:08:15    阅读次数:151
sharememory.c
//进程通信,共享存储区#include #include #include #include #include #include #include #include #include #include #include #include #include #include #include #in...
分类:其他好文   时间:2014-11-12 07:08:05    阅读次数:219
strcat实现
//将源字符串加const,表明其为输入参数char*strcat(char*strDest,constchar*strSrc){//后文returnaddress,故不能放在assert断言之后声明addresschar*address=strDest;assert((strDest!=NULL)...
分类:其他好文   时间:2014-11-12 07:06:33    阅读次数:132
【形式化方法:VDM++系列】2.VDMTools环境的搭建
本文为形式化方法:VDM++系列2————介绍了VDM++开发环境的配置和基本使用
分类:其他好文   时间:2014-11-12 07:07:22    阅读次数:159
strncpy实现
#includechar *my_strncpy(char *dest,char *src,int n){ int i; for(i=0;i<n && src[i]!='\0';i++) dest[i] = src[i]; for(;i<n;i++) ...
分类:其他好文   时间:2014-11-12 07:07:50    阅读次数:106
sscanf,sprintf用法
#include#includeint main(){char buf[512],sztime1[16],sztime2[16];sscanf("123456 ", "%s", buf);//此处buf是数组名,它的意思是将123456以%s的形式存入buf中!printf("%s\n", buf)...
分类:其他好文   时间:2014-11-12 07:07:29    阅读次数:185
strstr实现
// strstr.c查找完全匹配的子字符串#include#includechar *my_strstr(const char *s1,const char *s2){ const char *p=s1; const int len=strlen(s2); for(;(p=str...
分类:其他好文   时间:2014-11-12 07:06:29    阅读次数:126
tcp_client.c tcp_server.c
#include #include #include #include #include #include #include #include #define portnumber 3333int main(int argc, char *argv[]) { int sock...
分类:其他好文   时间:2014-11-12 07:05:29    阅读次数:915
getmask
#include "stdio.h"#include "stdlib.h"#include "string.h"#include "net/if.h"#include "arpa/inet.h"#include "linux/sockios.h"int main(int argc,char *arg...
分类:其他好文   时间:2014-11-12 07:04:46    阅读次数:200
client_thread.c server_thread.c
client_thread.c#include #include #include #include #include #include int main(int argc,char *argv[]){ int connect_fd; int ret; char snd_buf[1...
分类:其他好文   时间:2014-11-12 07:04:46    阅读次数:250
nginx小记
上一次折腾nginx还是两年前的事情了。好多配置都忘记了。 捣腾了下阿里云,部署了一下,遇到几个小问题,温故并记录一下吧 :)
分类:其他好文   时间:2014-11-12 07:06:04    阅读次数:150
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!