开发者

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

开发者 https://www.devze.com 2023-02-11 02:23 出处:网络
Why am I getting 开发者_StackOverflowtold that there is a missing ; when trying to create this 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

精彩评论

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