This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Question about C++ namespace

Other Parts Discussed in Thread: TMS320C6748

I'm using TMS320C6748 and CGT 7.4.20.

a simple c++ program using namespace std can't work.

#include <iostream.h>

int main()

{
cout << "Hello Tronlong!" << endl;

return 0;
}

Then I deleted using namespace std; and changed #include <iostream> with  #include <iostream.h>

#include <iostream>

using namespace std;

int main()
{
cout << "Hello Tronlong!" << endl;

return 0;
}

It works.But why?

Thanks a lot.