>> I compile hello world successfully, but running it
>> produces no output!!!
>> #include <iostream.h>
>> int main()
>> cout << "Yo. World.";
>> return (0);
> I'm clueless. Try adding an << endl; or else
> put a newline in the print statement?
Indeed, some shells (e.g., zsh) swallow up the last output line if it
doesn't end in a newline. (I don't know about C++, but in C the result of
a last output line without a trailing newline is implementation-defined.)
Also, ask your shell ("type programname" in Bourne-shell derivatives;
"which programname" in c-shells) which program it wants to run. A common
mistake is to call test programs "test"; since "test" is (almost always) a
shell builtin, you must ask the shell for "./test".
||| "It was not granted you to complete the task, and |||
||| yet you may not give it up." --Rabbi Tarfon |||