No Output
Hey Guys,
I am a Linux newbie. I just wrote my first program - first.cpp. #include <iostream.h> int main() { std::cout << "First program"; } I then compiled the program : $g++ -o first first.cpp No eroors. I then try to run the executable $ ./first But, there is no output on screen. Also it DOES NOT show any error. Any idea as to what the problem is? I tried a C program also. It compiled successfully, but when executing the program, there is no output. BTW, I am using RedHat Linux 8.0 Thanks in advance. |
That's funny. It works fine on my computer. It does give the following warning:
Quote:
By the way you might get a quicker reply next time if you put this in the programming forum. |
Yes, I know. I remember the first time I wrote a C program, the output did show up. I guess, something must have changed after that. And I cannot figure that out.
I realised I should have posted it on programming section and actually I posted it already. Thanks for your reply, anyway. |
All times are GMT -5. The time now is 11:17 AM. |