P
parmenides
Hi,
For the flowing code:
#include <iostream>
int cout;
int main()
{
using namespace std;
cout << endl;
return 0;
}
I think all symbols in std are injected into main(), that is , the cout is a
object local to the main(). It should shield the other cout in the global
namespace. But, the complier has told me:
reference to 'cout' is ambiguous
Does the symbols of std is not local to the main()?
For the flowing code:
#include <iostream>
int cout;
int main()
{
using namespace std;
cout << endl;
return 0;
}
I think all symbols in std are injected into main(), that is , the cout is a
object local to the main(). It should shield the other cout in the global
namespace. But, the complier has told me:
reference to 'cout' is ambiguous
Does the symbols of std is not local to the main()?