It is most likley one of the "few statements in between" that is causing
the problem.
Try copying and pasting the complete file.
lstar36
On Fri, 26 Jan 2001 15:17:51 +0530 "Rahul Sangole"
<rah...@in...> writes:
> I am getting the following error while using Dev C++ :
> parse error in 'do'
>
> I am getting similar errors for while loops, return statements etc.
> eg:
>
> int main()
> {
> clrscr();
> do{
> cout<<"Main - ";
> //few statements in between
> } while(ch!='a')
> return 0;
> }
>
> Please help.
>
> Regards,
> Rahul.
>
>
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> http://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|