- 博客(7)
- 收藏
- 关注
原创 得到程序的汇编代码
(1). main.clong long a;int main( void ){ a = 5; return 0;} (2). #gcc -g main.c -o main //带调试信息编译,然后带源代码反汇编 (3). #objdump -D -S main //反汇编该程序,得到该程序的汇编代码i
2010-03-30 16:35:00 964
原创 Linux system()函数
#include int system( const char *cmdstring ); 参数cmdstring是需要执行的shell命令。system的返回值的情况比较复杂。system函数是一个库函数,其中封装了fork,exec,waitpid三个系统调用,其返回值也要根据这三个系统调用的情况来讨论。 1. 如果fork函数和waitpid函数执行失败,syste
2010-03-28 21:41:00 851
原创 vfork()的体会
#include #include int f1(){ printf( "/n" ); vfork(); printf( "f1/n" ); return 0;}int f2(int a,int b){ printf( "/n" ); return a+b; //return 0;}int
2010-03-28 17:20:00 569
原创 警告:隐式声明与内建函数 ‘(函数名)’ 不兼容
编译器发出这种警告的原因是:没有找到头文件。应该用"#include"将函数所使用的头文件包含进来
2010-03-28 10:41:00 1024
原创 结构体中的指针变量输出
struct sip_request { char *rlPart1; char *rlPart2;};struct sip_request *req; printf( "---rlPart1--->%sprintf( "---rlPart2--->%s
2010-03-23 22:07:00 1364
原创 调用的参数问题
#include class CDate{public: CDate(); CDate(int day); CDate(int month,int day); CDate(int year,int month,int day);private: int nYear,nMonth,nDay;};CDate::CDate(){ nMonth=7; nDay=31; nYear=2002; co
2010-03-17 20:12:00 475
原创 CRC循环冗余检测码
http://blog.chinaunix.net/u3/91801/showart_1807141.htmlhttp://hi.baidu.com/maolang0/blog/item/1457ab1bca62ad1d8618bf19.html 知识环境: 数据校验码:通常三种:奇偶校验码;海明校验码;循环冗余校验码。循环冗余码(CRC): 主
2010-03-13 19:10:00 2561
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人