I have a 10 line C++ program that does not work. The program is as follows:
#include <stdio.h>
#include <stream.h>
main()
{
int j;
cout << "Enter value j: ";
cin >> j;
// problem:: printf statement does not put output on the screen.
printf("%d\n",j); // or any printf statement
}
The output for this program looks like this:
localhost> a.out
Enter value: 1
localhost>
I am running NS 3.0 using the libg++-1.39.0 g++ libraries that I have been able to install. Anybody have any idea what the problem is or what a fix might be or has anyone even had this problem? Thanks