我想知道如何在给定起点和终点的情况下动态填充数组?假设有可能?
我目前的方式(硬编码整数)
int xValues[] = {340,347,348,349,352,355,359,364,369,376,383,392,400,410,421,431,443,455,467,480,492,505,519,532,545,559,572,585,599,612,625,637,648,658,667,675,681,686,690,693,696,697,698,700};
for (int i = 0; i < xValues.length; i++)
{
x=xValues[i];
所需方式
int xValues[] = Range(340, 700); // if possible unit of increment 1 or 10
谢谢你,编码愉快。