摘要: 转载自:http://www.cnblogs.com/liangyan19910818/archive/2011/08/19/2145270.htmlC语言——指向函数的指针1 函数类型 (* 函数指针变量)() ; //指向函数的入口地址一个函数是若干语句的集合 , 经编译后存储在函数代码存储... 阅读全文
posted @ 2014-11-14 22:22 司空格子Ored 阅读(301) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://blog.csdn.net/daheiantian/article/details/6246519命令行参数的最大作用就是让我们可以在程序之外控制程序,例如linux或者dos中我们经常使用的命令,从本质上将是一个程序;而我们使用的参数,就是该命令(对应的程序)的命令行参数。 ... 阅读全文
posted @ 2014-11-14 22:18 司空格子Ored 阅读(258) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h"#include "stdlib.h"#include "string.h"static char daytab[2][13] ={ {0,31,28,31,30,31,30,31,31,30,31,30,31}, {0,31,29,31,30,31,... 阅读全文
posted @ 2014-11-14 22:13 司空格子Ored 阅读(342) 评论(0) 推荐(0) 编辑
摘要: 转载自:http://blog.csdn.net/lihaoweiv/article/details/7027521使用未初始化的指针是非常危险的。通过一个未初始化的指针会很容易覆盖随机的内存区域。造成的损害取决于如何倒霉,所以初始化指针不仅仅是一个好主意。通过指向一个已经被定义变量的地址 很容易初... 阅读全文
posted @ 2014-11-14 15:12 司空格子Ored 阅读(367) 评论(0) 推荐(0) 编辑
摘要: #include "stdio.h"#include "stdlib.h"#include "string.h"static char daytab[2][13] ={ {0,31,28,31,30,31,30,31,31,30,31,30,31}, {0,31,29,31,30,31,... 阅读全文
posted @ 2014-11-14 15:12 司空格子Ored 阅读(264) 评论(0) 推荐(0) 编辑
摘要: #include #include #include #include #include #include int getline_(char *s,int n){ char c; char *sta = s; while(--n > 0 && (c = getchar()) !=... 阅读全文
posted @ 2014-11-14 10:20 司空格子Ored 阅读(403) 评论(0) 推荐(0) 编辑