24.08.2010, 14:29
Nvm what I said.
And we indeed need the above lines
And we indeed need the above lines
Quote:
declaration of a local variable must appear in a compound block The declaration of a local variable must appear between braces (“{. . .}”) at the active scope level. When the parser flags this error, a variable declaration appears as the only statement of a function or the only statement below an if, else, for, while or do statement. Note that, since local variables are accessible only from (or below) the scope that their declaration appears in, having a variable |