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?
Replace for( count=1, count<=100, count++)
with -
for( count=1; count<=100; count++)
for syntax:
for ( init-expression ; cond-expression ; loop-expression )
statement
精彩评论