[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: g++ file doesn't run



>Thanks for the help - it does compile with g++ instead of gcc, but the executable produced isn't doing anything.  Here's what i'm doing:
>
>//test.c
>#include <iostream.h>
>
>main(){
>  cout << "Hello there.";
>}
>
>The test file doesn't print out anything when I run it.

Append a \n to your string.  Or include iomanip.h and use the "flush"
manipulator.

---
Benoit Goudreault-Emond
Reply to: bgoudem@qualiscope.axess.com
My opinions are mine only and may not reflect those of my employer.
E-mail me to obtain my public PGP key.



Reply to: