When
using namespace std;
are you able to overwrite it for a specific line e.g ios::app while using the fstream header? or does that mean i have to use std:: on everything else?
thanks
When
using namespace std;
are you able to overwrite it for a specific line e.g ios::app while using the fstream header? or does that mean i have to use std:: on everything else?
thanks
Without the using namespace std;
you will have to preface most everything from the libraries with std:: (and who wants lots of std's in this day and age?;)
Without it, you might have to open a file like
std::fstream fin ("text.txt", std::ios::in );
The using statement makes everything in the libraries directly available to you , saving a lot of writing.
I understand that lol. Im sorry, i guess my question, is ios:: included in the std namespace? Thanks =)
Yes
thanks!
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.