阅读背景:

如何设置或初始化表或2d数组或多维数组的所有元素的默认值

来源:互联网 

I want to set a default nonzero value for all elements of a table or 2d array. array[size]={12} sets first elements only 12 and others are all 0 in a row.But fill(array,array+size,12) sets all elements to 12 in a row only.I could't apply this for 2d array.Is there any way to do this using fill() or any way without direct initialization using double for loopI want to set a default nonzero value for all e




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: