A
Alex Buell
Is it legal to do this:
using std:ut, std::cin, std::endl;
If not, why not?
using std:ut, std::cin, std::endl;
If not, why not?
Alex said:Is it legal to do this:
using std:ut, std::cin, std::endl;
No.
If not, why not?
Is it legal to do this:
using std:ut, std::cin, std::endl;
If not, why not?
Is it legal to do this:
using std:ut, std::cin, std::endl;
If not, why not?
Alex Buell said:Is it legal to do this:
using std:ut, std::cin, std::endl;
No, and it's a pain. If you are freaked out about using namespace std, the
best workaround I know of is to put a bunch of the ones you use in a header
file, keep it handy, and add the header when needed. I would make it the
last header file included.
No, and it's a pain. If you are freaked out about using namespace std,
the
best workaround I know of is to put a bunch of the ones you use in a header
file, keep it handy, and add the header when needed. I would make it the
last header file included.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.