|
From: Ioannis V. <no...@ho...> - 2002-09-07 19:58:47
|
<http://run.to/noicys> -----Original Message----- From: dev...@li... [mailto:dev...@li...] On Behalf Of tam...@ms... Sent: Saturday, September 07, 2002 7:46 PM To: MailingList Dev-C Subject: [Dev-C++] errors Hey guys I'm still very green at this and I just inputted a small program (listed below) from "Teach Yourself C++", and when I try to compile it gives me errors LINE 26 PARSE ERROR BEFORE ';' LINE 30 PARSE ERROR BEFORE ';' I took the int i and the ++ off both lines and the program compiled but didn't work properly. I was wondering is the book wrong or am I doing something wrong? [...] //---Pointer and subscript access, pointer notation for (i = 0; cp = msg; *(cp+i); i++) You have 4 expressions in the for(). You probably meant something like: [...] //---Pointer and subscript access, subscript notation for (i = 0; cp = msg; cp[i]; i++) The same here Ioannis * Ioannis Vranos * Programming pages: http://www.noicys.cjb.net <http://www.noicys.cjb.net/> * Alternative URL: http://run.to/noicys |