Source Examples
I dislike using directives and declarations because they hide the namespace of the library functions, but because of the limited length of a page, I have to use them from time to time. I use them in such a way that the origin can always be deduced from the using directive (using namespace std;
) or the using declaration (using std::cout;
).
Only header files of the featured functionality are shown in the code snippets. True or false is displayed in the output code snippets for boolean values; and
std::boolalpha
is not used.