Login | Register   
LinkedIn
Google+
Twitter
RSS Feed
Download our iPhone app
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: C++
Expertise: All
Mar 5, 2001

Namespaces and the C Standard Library


The C++ Standard requires that the C standard library be declared in namespace std, just as the C++ Standard Library. Thus, if you #include <cstdio> and call printf(), you should use a fully qualified name, a using-declaration, or a using-directive. For example:
 
#include <cstdio>
int main ()
{
 std::printf (
Danny Kalev
 
Comment and Contribute

 

 

 

 

 


(Maximum characters: 1200). You have 1200 characters left.

 

 

Sitemap