Newsgroups: comp.os.msdos.djgpp From: manfred DOT heumann AT uni-bielefeld DOT de (Manni Heumann) Subject: Re: Code problems References: <7rbdkc$l21$3 AT perki DOT connect DOT com DOT au> X-Newsreader: News Xpress 2.01 Date: Sat, 11 Sep 1999 07:35:45 GMT NNTP-Posting-Host: ppp36-116.hrz.uni-bielefeld.de Message-ID: <37da0654.0@news.uni-bielefeld.de> X-Trace: 11 Sep 1999 09:35:48 +0200, ppp36-116.hrz.uni-bielefeld.de Lines: 31 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com 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