Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
この構文に出くわしましたが、それが何を意味するのかわかりません。
for( ; ; ) { //do stuff like read from a handle etc. }
私はまだ C の学習曲線上にあるので、下手な質問であれば反対票を投じてください。
無限ループです。と同じwhile(1)
while(1)
本当に注目すべき唯一の重要なことは、 for ループが のように見えることですfor (initialize vars; continue condition; counters) 。継続条件がないため、継続します (どこかに break または return ステートメントがない限り)。
for (initialize vars; continue condition; counters)