From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Earnie Boyd" To: BMullenber@aol.com Cc: gnu-win32@cygnus.com Subject: Re: hey Date: Sun, 04 Jan 1998 15:26:00 -0000 Message-id: <199801042325.PAA10451@f134.hotmail.com> X-SW-Source: 1998-01/msg00054.html >From: BMullenber >Date: Sat, 3 Jan 1998 06:18:13 EST >To: earnie_boyd@HOTMAIL.COM >Subject: hey > >In a message dated 98-01-02 12:22:50 EST, you write: > ><< Hi Brandon, > > Try: > gcc -o hello.exe hello.c > > or > gcc -c hello.c > gcc -o hello.exe hello.o >> > >Thanks for the help, now i got 1 simple problem. > >I am learning from a C++ book by myself. > >The hello program in the book is written >-------------------------------- >#include > >int main() >{ >cout << "hello\n"; >return 0 >} This didn't work because of the missing ";" on return 0 > >I found out through trial and error that it doesn't work and you need to do >this > >-------------------------------- >#include > >void main() >{ >cout << "hello\n"; >}; > >now when I try the exe program it works but it quickly closes without havng >barely any time to actually read what it says. Is there any way for it to >stay open so that i can read it? A command? Run it from a dos window. When the program exits the output will still be seen. > - \\||// ---o0O0--Earnie--0O0o---- -earnie_boyd@hotmail.com- ------ooo0O--O0ooo------- Check out these great gnu-win32 related sites: ftp://ftp.cygnus.com/pub/gnu-win32/latest/ (ftp site) http://www.cygnus.com/pubs/gnupro/ (Comercial Page) http://www.cygnus.com/misc/gnu-win32/ (Project Page) http://www.cygnus.com/ml/gnu-win32 (Mail Archives) http://www.itribe.net/virtunix/winhelp-man-pages/ (HTML Man Pages) http://www.lexa.ru/sos (Sergey Okhapkin) http://www.fu.is.saga-u.ac.jp/~colin/gcc.html (Colin Peters) http://www.xraylith.wisc.edu/~khan/software/gnu-win32/ (Mumit Khan) http://gnu-win32.paranoia.ru (Chuck Bogorad) ftp://ftp.deninc.com/pub (Den Internet Services) ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com - For help on using this list (especially unsubscribing), send a message to "gnu-win32-request@cygnus.com" with one line of text: "help".