七月网

constants(C语言里定义数组的时候constants到底是干什么用的)

七月网3850

C语言里定义数组的时候constants到底是干什么用的

按照这段代码,可以认为constant是结构体内部定义的一个int数组

constants(C语言里定义数组的时候constants到底是干什么用的)

A.constants=(int*)malloc(dim*sizeof(int));//分配内存

if(!A.constants)exit(OVERFLOW);//内存不足,报警

A.constants[dim-1]=1;//设置结束标记

for(i=dim-2;i>=0;--i)

A.constants[i]=A.bounds[i+1]*A.constants[i+1];//运算

这个要看代码具体的用处了

直接说有什么用,天才也猜不到

constant是什么意思

constant的意思:不变的。

读音:英[ˈkɒnstənt]、美[ˈkɑːnstənt]。

释义:

adj.不变的;恒定的;经常的

n.[数]常数;恒量

n.(Constant)人名;(德)康斯坦特

变形:复数constants、比较级moreconstant、最高级mostconstant。

constant造句如下:

1、I'mfedupwiththeconstantinterruptionsfromtheneighbornextdoor.

我受够了隔壁邻居的无休止干扰。

2、Thepriceofastockisinaconstantchangeovertime.

股票价格是随时变化的。

3、Inmathematics,thecapitalCisoftenusedtodenoteaconstant.

数学上常用大写的C来表示某一个常数。

4、He'sinconstanttroublewiththepolice.

他与警方麻烦不断。

5、Fromtheirconstantbickering,I'dsaythetwoofthemaren'tverycompatible.

他们时常吵架,我觉得他们俩不是很合得来。

constant的动词

constant没有动词形式,只有名词和形容词

constant翻译成中文是常数

词语分析:

音标:英[ˈkɒnstənt]美[ˈkɑːnstənt]

adj.持续不断的,经常发生的;恒定的,不变的;忠诚的,忠实的

n.常数,恒量;不变的事物

短语搭配:

1、constanttemperature恒温;定温;等温

2、constantpressure恒压

3、dielectricconstant介电常数;电容率

例句:

1、Thespeedoflightisaninvariantconstant.

光速是一个不变常数。

2、Theseshouldbefourundeterminedconstantsinthedisplacementfunction.

位移函数中应有四个未定常数。

3、Thetemperatureremainedconstantwhilepressurewasavariableintheexperiment.

做这实验时温度保持不变,但压力可变。

同义词:

【热】恒温;定温;等温

homoiothermy/homeothermy