Mail Archives: djgpp/1999/09/12/09:23:10
In article <7rbdkc$l21$3 AT perki DOT connect DOT com DOT au>, tchuma AT sympac DOT com DOT au (Tim Chmielewski) wrote:
>I know it's probably against the rules to post code here, but I can't work
>out this problem:
>
I guess that posting code is OK, unless it's longer than what you posted. But
when it comes to error messages, you should also provide line numbers and some
indents for readability.
>tot.cpp: In function `void print_flrrm(int, int, int, int, int)':
>tot.cpp:147: parse error before `{'
>tot.cpp:153: `nasties' undeclared (first use this function)
>tot.cpp:153: (Each undeclared identifier is reported only once
>tot.cpp:153: for each function it appears in.)
>
>
>CODE:
>
>void look_ahead(char nasties, int floor, int ty, int &gf)
>{
[snip -rest of code]
The compiler complains about an error in function void print_flrrm (). You
posted the function void look_ahead (). This can mean two things: Either you
posted the wrong code (I don't think so), or print_flrrm precedes look_ahead
in your code, but you forgot to end it with a '}'.
--
Manni
- Raw text -