I am currently working in c++, I want to know everything that using namespace std adds. I already know the basic ones, like cout and cin. However when I run my program without using namespace std, It doesn't work (I do add std:: before the cout command). But I am wondering what else I need to add std:: before.
Any help would be greatly appreciated!
Here is my code:
#include <iostream>
#include <string>
class MyClass{
public:
void setName(string x){
name = x;
}
string getName(){
return name;
}
private:
string name;
};
int main()
{
MyClass mc;
mc.setName("WASSSSSUUUPP!!! \n");
std::cout << mc.getName();
}