论坛


2008年11月28日 星期五

学点 C 语言(28): 数据类型 - 联合(union)

万一| 万一的 Delphi 博客 |22:17:00

在结构中, 每个字段的数据类型是唯一的; 使用联合可以在一个字段中储存不同的数据类型.不同的数据类型共享一块内存. 当然其内存大小应依着大的来.联合中的数据, 非此即彼, 只有一个有效; 应该有说明在某个数据中此时有用的是什么类型.除了共享内存以外, 联合与结构一...

学点 C 语言(27): 数据类型 - 结构中的 "位域"

万一| 万一的 Delphi 博客 |21:40:00

所有基础的数据类型, 最大的也不过 10 个字节;我们可以自定义的数据类型 -- "结构", 通过把若干类型组合在一起, 让一种类型可以大很多.我们知道, 一个字节有八个 Bit 组成; 能否把一种类型缩小、缩小到 Bit 级?结构中的 "位域" 是以 Bit 为单位的, 这已经是计算机的?..

平行處理機制,平行Linq和Delphi Prism

李维| IT : 是工作還是嗜好? |17:53:07

在上篇我從一些蛛絲馬跡來猜測Delphi除了朝原生64位元發展之外,也可能會在非同步,平行執行方向進行突破的發展。當這篇文章貼出之後,很快的我的朋友就問我『這樣的』Delphi會在什麼時候出現,說實話我不知道,因為這也是我從一些蛛絲馬跡『猜測』的,所以我當然不?..

学点 C 语言(25): 数据类型 - 结构的更多可能

万一| 万一的 Delphi 博客 |17:23:00

1. 包含数组的结构:#include <stdio.h> int main() { struct Rec { int x[3]; int y; } r1; r1.x[0] = 11; r1.x[1] = 22; r1.x[2] = 33; r1.y = 99; printf("%d,%d,%d,%d", r1.x[0], r1.x[1], r1.x[2], r1.y); ...

学点 C 语言(26): 数据类型 - 结构的更多可能

万一| 万一的 Delphi 博客 |17:23:00

1. 包含数组的结构:#include <stdio.h> int main() { struct Rec { int x[3]; int y; } r1; r1.x[0] = 11; r1.x[1] = 22; r1.x[2] = 33; r1.y = 99; printf("%d,%d,%d,%d", r1.x[0], r1.x[1], r1.x[2], r1.y); ...

delphi 取最大值函数

minyoad| minyoad的技术坛子-delphi |15:31:34

maxvalue 取得array 存储的double的值串的最大值,一直没找到,巧合看到了,记录一下,位于mathfunction MaxValue(const Data: array of Double): Double;Tags: delphi

学点 C 语言(25): 数据类型 - 结构数组与结构指针

万一| 万一的 Delphi 博客 |14:35:00

1. 结构数组:#include <stdio.h> int main() { struct Rec {int x,y;}; struct Rec rs[10]; size_t i; for (i = 0; isizeof rs/sizeof rs[0]; i++) { rs[i].x = i; rs[i].y = i * 2; } for (i = 0; isizeof ...

学点 C 语言(24): 数据类型 - 结构(struct)

万一| 万一的 Delphi 博客 |13:45:00

1. 结构就是多个变量的集合:#include <stdio.h> int main() { struct Rec { int x; int y; }; struct Rec r1; r1.x = 111; r1.y = 222; printf("%d, %d", r1.x, r1.y); getchar(); return 0; }2. 定义?..

MySQL DB to MSSQL Migration Tool

delphi3000| delphi3000.com |12:00:00

What is MySQL DB to MSSQL Migration Tool?

CodeGear RAD Studio 2009 Trial with Delphi Prism ISO

Bob Swart| Dr.Bob’s Delphi Notes |11:38:13

You can now download the CodeGear RAD Studio 2009 Trial with Delphi Prism ISO (at 1.4 GB), and request a trial key, in order to install a 14-day trial edition of the Delphi Prism portion of RAD Studio 2009 (or, if you already have a real key for R...

学点 C 语言(23): 数据类型 - 给指针分配内存

万一| 万一的 Delphi 博客 |11:09:00

C 语言的内存分配很简单: malloc、calloc、realloc、freemalloc(字节数); 返回内存段的首地址, void 的.calloc(个数, 类型大小); 和 malloc 的区别就是它会初始化内存为空.realloc(原指针, 字节数); 重新分配由 malloc、calloc 分配的内存; 这里有太多注意事项:1、如...

学点 C 语言(22): 数据类型 - 多维数组与指针

万一| 万一的 Delphi 博客 |07:52:00

1. 关于数组的首地址:#include <stdio.h> int main() { char cs[2][3] = { {'A','B','C'}, {'D','E','F'} }; char *p1,*p2,*p3,*p4; p1 = p2 = p3 = p4 = NULL; /* 下面四个...

ESB.Professional.Computation.Suite.for.VCL.v5.0.0.build.2008-11-18

flypig| flypig-delphi |07:12:30

url:http://www.esbpcs.com ESB Professional Computation Suite (ESBPCS) provides a huge collection of Routines and Components to make Data Entry and Manipulation easier for both Developers and their end-users. This is a collection of over 6000 rout...

Delphi and C++Builder Decompiler 3.42

flypig| flypig-delphi |07:07:21

Code: http://www.softpedia.com/get/Programming/Debuggers-Decompilers-Dissasemblers/Delphi-and-C-Builder-Decompiler.shtml Delphi and C++Builder Decompiler description This is an easy-to use program that can help you to restore your lost source co...

PaxCompiler v2.1 27-nov-08 FULL SOURCE

flypig| flypig-delphi |03:33:03

What’s New 23 November 2008. paxCompiler v2.1. New: * Support of Delphi 2009. * Internal representation of script-defined class types coincides with representation of Delphi classes, so you can create new native Delphi classes in a s...