|
From: Ioannis V. <no...@ho...> - 2002-08-09 21:53:36
|
Your code is valid, you should not get any errors, although it could be
written better:
#include <iostream>
#include <cstdlib>
int main() {
using namespace std;
cout << "hello" << "\n";
system("PAUSE");
return 0;
}
Ioannis
* Ioannis Vranos
* Programming pages: http://www.noicys.cjb.net
* Alternative URL: http://run.to/noicys
> -----Original Message-----
> From: dev...@li...
> [mailto:dev...@li...] On Behalf
> Of jansb000
> Sent: Saturday, August 10, 2002 12:16 AM
> To: Jim Watters; dev...@li...
> Subject: Re: [Dev-C++] Stupid question
>
>
> This is my program: I still have the problem ([linker error] undefined
> reference to 'cout')!
>
> #include <iostream>
> #include <stdlib.h>
>
> using namespace std;
>
> int main(int argc, char *argv[]) {
> cout << "hello" << "\n";
> system("PAUSE");
> return 0;
> }
>
> ----- Original Message -----
> From: "Jim Watters" <ma...@em...>
> To: <dev...@li...>
> Sent: Wednesday, August 07, 2002 3:11 PM
> Subject: RE: [Dev-C++] Stupid question
>
>
> > -----Original Message-----
> > From: Jim Watters
> >
> > #include <iostream.h>
> >
> > ;-)
> >
> > -----Original Message-----
> > From: Ioannis Vranos
> >
> > #include <iostream>
> >
> > using namespace std;
> >
> > :)
> >
> > -----New Message-----
> >
> > You mean :) must be used instead of ;-)?
> >
> > Thanks. I'm used to C and doing things "the old way".
> >
> > :)
> >
> > Jim
> >
> >
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by:ThinkGeek
> > Welcome to geek heaven.
> > http://thinkgeek.com/sf
> > _______________________________________________
> > Dev-cpp-users mailing list
> > Dev...@li...
> > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
>
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Dev-cpp-users mailing list
> Dev...@li...
> TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm
> https://lists.sourceforge.net/lists/listinfo/dev-cpp-users
>
|