Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Arduino 我不能';我听不懂那句话_Arduino - Fatal编程技术网

Arduino 我不能';我听不懂那句话

Arduino 我不能';我听不懂那句话,arduino,Arduino,你们能告诉我这句话是什么意思吗 char next=(i==地形宽度-1)?新大陆:地形[i+1] 这相当于: char next; if ( i == (TERRAIN_WIDTH - 1) ) { next = newTerrain; } else { next = terrain[ i+1 ]; } 更多信息:这相当于: char next; if ( i == (TERRAIN_WIDTH - 1) ) { next = newTerrain; } else {

你们能告诉我这句话是什么意思吗

char next=(i==地形宽度-1)?新大陆:地形[i+1]


这相当于:

char next;
if ( i == (TERRAIN_WIDTH - 1) ) {
    next = newTerrain;
} else {
    next = terrain[ i+1 ];
}

更多信息:这相当于:

char next;
if ( i == (TERRAIN_WIDTH - 1) ) {
    next = newTerrain;
} else {
    next = terrain[ i+1 ];
}
详情如下: