2008年12月4日 星期四
学点 C 语言(40): 函数 - 多参函数
万一| 万一的 Delphi 博客 |22:20:00
像 printf 这种多参函数, 是借用 stdarg.h 中的宏实现的.va_list : 用于定义遍历参数列表的指针; va_start : 让指针指向第一个参数; va_arg : 获取下一个参数, 并向后移动一个位置; va_end : 释放指针, 完成遍历.1. 整数求和:本例实现了对系列整数求和, 要求至?..
学点 C 语言(39): 函数 - 使用函数的代价与内联函数(inline)
万一| 万一的 Delphi 博客 |21:16:00
C 语言离不开函数, 使用函数也很方便, 但使用函数是有代价的;特别是在反复调用时, 函数会因反复地压栈、出栈而浪费一些时间.下面是测试, 用函数与不用函数的时间分别是: 8秒、4秒!1. 测试使用函数的代价:#include <stdio.h> #include <time.h> int sum(int x)...
建议大家使用FASTMM
幸福苹果| 幸福苹果-delphi |19:55:00
http://vir.jxstnu.edu.cn/xieyunc/read.php?2162008年06月04日 14:32 阅读全文类别:delphi编程 查看评论
Delphi7 内存管理及 FastMM 研究
幸福苹果| 幸福苹果-delphi |19:55:00
http://blog.csdn.net/niniu/archive/2008/11/28/3404110.aspx阅读全文类别:delphi编程 查看评论
FastMM FastCode
幸福苹果| 幸福苹果-delphi |19:50:00
Delphi 2006 中一个重要的更新就是使用开源内存管理器FastMM替调了使用了 N 年的老内存管理器。阅读全文类别:delphi编程 查看评论
FastMM 使用手记
幸福苹果| 幸福苹果-delphi |19:47:00
FastMM 的下載地址:http://sourceforge.net/project/showfiles.php?group_id=130631首先在下载的文件里你会找到一个文件,位置在Replacement BorlndMM DLL\Precompiled\for Delphi IDE\Performance\BorlndMM.dll,阅读全文类别:delphi编程 查看评论
D7下FastMM的使用
幸福苹果| 幸福苹果-delphi |19:46:00
FastMM 快速MM:-),在D2006和2007中已代替了原来的内存管理器。D7也可以阅读全文类别:delphi编程 查看评论
学点 C 语言(38): 函数 - 函数指针
万一| 万一的 Delphi 博客 |19:04:00
先复习函数的定义与函数的声明://这是一个求和函数的定义: int add(int x, int y) { return(x + y); } //可以这样声明: int add(int x, int y); //也可以这样声明: int add(int, int);定义一个函数指针声明一个函数差不多, 用 (* ) 包括函数即可://像这样: int...
CodeGear RAD Studio 2009 Trial
CodeGear| CodeGear-CodeCentral Delphi |18:52:54
Fully functional 14-day trial of CodeGear RAD Studio 2009 Architect<br> Includes Delphi 2009, C++Builder 2009 and Delphi Prism 2009 - English, German, French and Japanese<p>RAD Studio is a combination of three products. The Delphi and ...
学点 C 语言(37): 函数 - 常量(const)参数
万一| 万一的 Delphi 博客 |17:11:00
非指针参数(也就是传值参数)不会被修改原始值, const 对它是没有意义的.const 只用于指针.1. 第一种用法: const 类型 *变量:这种用法将限制修改指针指向的值.#include <stdio.h> int fun(const int *p) { *p += 1; /* 只有去掉 const 这句才可以执行 */ ...
RTTI Demo for CodeRage III Session
CodeGear| CodeGear-CodeCentral Delphi |17:02:02
RTTI Demo for Robert Love's CodeRage III Session on Run Time Type Information. Code was really only tested in 2009.
CodeRage III - Day 4 - Thursday, 5am to 8pm (Pacific Time)
David I| Sip from the Firehose |17:00:48
Day 4 of CodeRage III - It’s Thursday! It’s the fourth day of CodeRage III.? Just 1.5 days of technical sessions left. Have you missed any of the sessions? You can still register and learn great things for the next 1.5 days (really? only...
CodeRage III - Day 4 - Thursday, 5am to 8pm (Pacific Time)
David I| Sip from the Firehose |16:58:47
It’s the?fourth (of five)?day of CodeRage III.? It’s Thursday and now there are only 1.5 days left for CodeRage III.? This morning, in room #1, it’s the Al Mannarino JBuilder and Java show.? Al is one of Embarcadero’s Software C...
CodeGear RAD Studio 2009 - Delphi Prism ISO
CodeGear| CodeGear-CodeCentral Delphi |16:04:01
The Delphi Prism 2009 ISO can be used with a trial serial number (available from the left side of this page) to install a 14-day trial of the Delphi Prism portion of RAD Studio 2009. The ISO can also be used with any purchased RAD Studio 2009 or D...
学点 C 语言(36): 函数 - 数组参数
万一| 万一的 Delphi 博客 |15:47:00
数组参数属于指针参数.指针参数即时传址参数(或叫引用参数), 如果想在函数中修改参数的值, 这是唯一的途径.如果把数组当作参数, 不管你愿意与否, 它就是指针, 指向第一个值的指针.1. 数组参数就是指向第一个元素的指针:#include <stdio.h> void getArr(int p[], ...





冀公网安备 13098202000212号