Changes

Jump to: navigation, search

OOP344 - FjXR - 20102

498 bytes added, 16:24, 31 May 2010
no edit summary
// Body of header file here...
#endif // INCLUDEGUARD_H
 
=== Use of namespaces ===
 
if you change the namespace outside of a function or class, you will cause
that change to occur for any file that includes your header,
resulting in all kinds of problems.
In cpp files, any global using directives will only affect that file,
and so you are generally used to produce more easilyreadable
code, especially in small programs.
 
example:
 
#include <cstdlib> // malloc() & free()
#include <cstring> // memset()
#include <iostream>
using namespace std;
1
edit

Navigation menu