Wednesday, December 1, 2010

C++ Header Files

The following are functionally equivalent:
#include <cstdio>
using namespace std;

#include <stdio.h>

The standard C header files have corresponding C++ versions that prepend "c" to the name, and remove ".h" from the end. The C++ version

puts the symbols in the std namespace. The C++ version is preferred.

No comments:

Post a Comment