for迴圈 兩個變數的相關文章
for迴圈 兩個變數的相關公司資訊
for迴圈 兩個變數的相關商品

Is it possible to declare two variables of different types in a for loop?
瀏覽:798
日期:2025-04-23
for(int i=0,j=0 ... Not possible, but you can do: float f; int i; for (i = 0,f = 0.0; i < 5; i++) { //... } Or, explicitly limit the scope of f and i using additional brackets: { float f; int i; ......看更多