Mail Archives: djgpp/2001/06/10/06:30:07
Dave Lemmens <dave AT dl-mail DOT dhs DOT org> wrote:
> Error: 'cout' undeclared (first use this function)
>
> so it looks like he thinks it's a variable.
1. <io.h> is wrong - use <iostream> (without .h)
2. use std::cout (or write under the #include: using namespace std)
>
> "Martin Str|mberg" <ams AT father DOT ludd DOT luth DOT se> wrote in message
> news:992084850 DOT 568529 AT queeg DOT ludd DOT luth DOT se...
> > Dave Lemmens <dave AT dl-mail DOT dhs DOT org> wrote:
> > : I used DJGPP + RHIDE before, it worked great!
> > : But now I want to compile a program (very easy one)
> > : it doesn't work.
> >
> > : Example:
> > : __________________________
> > : #include <io.h>
> >
> > : int main()
> > : {
> > : cout << "test";
> > : return 0;
> > : }
> > : ___________________________
> > : This doesn't work ;-(((
> >
> > Define "doesn't work" and "work".
--
#!/usr/bin/perl -- Random sig generator. Editor command in slrn => ~/siggs
$F=shift;open H,"+<$F";$_=join"",<H>;$s=index$_,"\n\n-- \n";$s<0||truncate
H,$s;close H;system"$ENV{EDITOR} $F</dev/tty>/dev/tty";$s=$n=0;for#sichtig
(<~/siggs/*>){++$n;int rand$n or$s=$_};`(echo "\n\n-- ")|cat - $s>>$F`+nan
- Raw text -