あまりにもC++に慣れてなくてこの2つのfor-loopが同じ動作してくれるかどうかもわかってなかった >> [Wandbox]三へ( へ՞ਊ ՞)へ ハッハッ http://melpon.org/wandbox/permlink/V7jEdpbrKRNg7Cqa …
-
-
@fadis_ なるほどー.一応,プリミティブ型なら後者でも良さそうだけど,バグ埋め込まないためにも前者のほうで書いたほうが良いですかね -
@kotatsu_mi バグを埋め込まない為というのなら、変数は必要最小限の範囲でしかアクセスできない方が良い。(上の例ならb) - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.