09.02.2013, 16:26
Quote:
003: 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 declaration as the only statement at any scope is useless. |