English 中文(简体)
C中未签名的果园的德尔菲等值
原标题:What is the Delphi equivalent of unsigned char** in C
  • 时间:2010-09-23 16:44:48
  •  标签:
  • c
  • delphi

什么是Delphi等同物

unsigned char**   

C

i m 无法确定其指向一个阵列或指向点人的点,或两者在C中相同。

最佳回答

EDIT In C both pointer to an array and pointer to a pointer have different meaning to the compiler (thanks caf).

在C阵列中,只是记忆的一部分。 没有任何诸如<代码>Length(array)、Low(array)High(array)等功能,可在帕斯卡尔阵列上使用。 为了实际目的,Pascal方案制定者C阵列通常可以运到Pascal点,特别是在向各种APIC发出功能呼吁时。

如果我们假设u signed char can be translation to byte in Delphi,那么unsign char * 可翻译成^byte。 通常通过<条码> 类型声明进行。

type
  PByte = ^byte;
  PPByte = ^PByte;

如果你试图转换某些C码,特别是h。 然后,主人查阅headconv

问题回答

两者在C相同。 但是,通常在你看到这一点时,这有一系列的果园。 我宣布:

type
  PAnsiCharArray = ^TAnsiCharArray;
  TAnsiCharArray = array[0..0] of PAnsiChar;

幸运的是,但后来又是最难以与《刑法》互动的。 但它应当发挥作用。

这是指点人。

仅限<>点/点>。{*}

但是,点索引公约意味着,使用阵列或点码是可行的。 首先,你一般认为是这样的事情。

int main(int argc, char** argv)

这也是将其编入一系列<代码>char*的实例(其分配和结构由本组织管理)。


{*}Because an range and a pointer are not the same matter in c. 相反, a range “decays” to pointer when used in a pointer context.





相关问题
Fastest method for running a binary search on a file in C?

For example, let s say I want to find a particular word or number in a file. The contents are in sorted order (obviously). Since I want to run a binary search on the file, it seems like a real waste ...

Print possible strings created from a Number

Given a 10 digit Telephone Number, we have to print all possible strings created from that. The mapping of the numbers is the one as exactly on a phone s keypad. i.e. for 1,0-> No Letter for 2->...

Tips for debugging a made-for-linux application on windows?

I m trying to find the source of a bug I have found in an open-source application. I have managed to get a build up and running on my Windows machine, but I m having trouble finding the spot in the ...

Trying to split by two delimiters and it doesn t work - C

I wrote below code to readin line by line from stdin ex. city=Boston;city=New York;city=Chicago and then split each line by ; delimiter and print each record. Then in yet another loop I try to ...

Good, free, easy-to-use C graphics libraries? [closed]

I was wondering if there were any good free graphics libraries for C that are easy to use? It s for plotting 2d and 3d graphs and then saving to a file. It s on a Linux system and there s no gnuplot ...

Encoding, decoding an integer to a char array

Please note that this is not homework and i did search before starting this new thread. I got Store an int in a char array? I was looking for an answer but didn t get any satisfactory answer in the ...

热门标签