I am a python programmer, and just learning some C++ on the side.
From what I understand, in C++ using namespace std
would be equivalent to python's from std import *
, and should not be used.
1) Correct?
And then in Python, I could do for example from std import cout, cin
.
2) Is there a single line equivalence? Or would I have to do it in multiple lines?
using std::cout;
using std::cin;