|
From: Daniel G. <sp...@ho...> - 2003-07-30 08:14:31
|
In C code don't the variables have to be declared at the top of the
function, and in C++ it can happen anywhere?
>From: "Dario Peralta" <do...@ho...>
>To: dev...@li...
>Subject: [Dev-C++] Weird parse errors...
>Date: Wed, 30 Jul 2003 00:05:10 -0400
>
>
>I'm using Dev-C++ 4.01 on a Win98se machine...
>
>And I'm wondering why I always get a parse error when I try to create a
>variable or an array after doing anything other than creating vars and
>arrays... for example:
>
>int main(void)
>{
>int i, n, m;
>/* insert whatever code: functions, meaningless loops, whatever */
>int a;
>return 0;
>}
>
>will always give me an parse error on the line "int a;" is on... why is
>that?
>
>thanks in advance...
>
>adios,
>dario.
>--------------------------------------------------------
>It's time to toss the dice and hope that chance rolls in our favor.
>
>_________________________________________________________________
>The new MSN 8: advanced junk mail protection and 2 months FREE*
>http://join.msn.com/?page=features/junkmail
>
>
>
>-------------------------------------------------------
>This SF.Net email sponsored by: Free pre-built ASP.NET sites including
>Data Reports, E-commerce, Portals, and Forums are available now.
>Download today and enter to win an XBOX or Visual Studio .NET.
>http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
>_______________________________________________
>Dev-cpp-users mailing list
>Dev...@li...
>TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm
>https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
_________________________________________________________________
Tired of 56k? Get a FREE BT Broadband connection
http://www.msn.co.uk/specials/btbroadband
|