摘要:有时候需要定义指向函数的指针,可以对一类拥有相同函数原型的函数进行调用。 #include <stdio.h>#include <stdlib.h>void intf(int (*fp)(), int a, int b);int f1(int a, int b); // +int f2(int a, int b); // -int f3(int a, int b); // *int f4(int...
阅读全文
摘要:不错的文章 先留着~http://wiki.ubuntu.org.cn/index.php?title=%E7%94%A8GDB%E8%B0%83%E8%AF%95%E7%A8%8B%E5%BA%8F&variant=zh-hans#.E7.9B.B8.E5.85.B3.E8.AF.8D.E6.9D.A1用GDB调试程序出自Ubuntu中文 作者:haoel (QQ是:753640,MSN是:haoel@hotmail.com)来源:http://blog.csdn.net/haoel/archive/2003/07/02/2879.aspx [编辑] GDB概述GDB 是GNU开源组
阅读全文
摘要:strcpy原型:extern char *strcpy(char *dest,char *src);用法:#include <string.h>功能:把src所指由NULL结束的字符串复制到dest所指的数组中。说明:src和dest所指内存区域不可以重叠且dest必须有足够的空间来容纳src的字符串。 返回指向dest的指针。例:char a[100],b[50];strcpy(...
阅读全文