开发者

C++ Being told that there is a missing semicolon by compiler when trying to create a for loop

Why am I getting 开发者_StackOverflowtold that there is a missing ; when trying to create this for loop?

C++ Being told that there is a missing semicolon by compiler when trying to create a for loop


Replace for( count=1, count<=100, count++) with -

for( count=1; count<=100; count++)

for syntax:

for ( init-expression ; cond-expression ; loop-expression )
statement

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜