Hello all,
My C++ For Dummies book is an invaluable tool to me as I learn, but some of the things in there I don't understand. One of them is this line of code in every program:
using namespace std;
It is after library declarations...E.g.
#include <cstdio>
#include <cstdlib>
#include <iostream>
using namespace std;
using namespace std;
Started by hetra, Feb 12 2010 05:22 PM
2 replies to this topic
#1
Posted 12 February 2010 - 05:22 PM
|
|
|
#2
Posted 12 February 2010 - 05:50 PM
"using namespace std;" includes sirten files that lets us call any function in the std namespace(the namespace std; files) without having to prefix it so "std::cout" can now be written "cout". Does this answer your question?
A man can be defined by what he does when no one is looking.
Science is only an educated theory, which we cannot disprove.
Science is only an educated theory, which we cannot disprove.
#3
Posted 12 February 2010 - 05:51 PM
Thanks that does.


Sign In
Create Account


Back to top









