Peng Yu wrote:
For example, at the beginning of the C++ program,
I say "using namespace std;"
However, in the middle of the program, I want to disable "using
namespace std;".
Do you know how to do that?
Thanks!
Peng
As others have pointed out there is no way of undoing a using
statement... if you *must* do this modularize your program so that the
modules you do the using statement in actually need it and those that
don't need it don't get it. Another way is to reorganize a module and
put the dependencies on the standard name space at the end, so that the
first part of the file needn't have the using.
I think you've had enough people yell at you for doing it to begin with
tho :).
David