In C/C++, the prototype for a function that has no arguments may or may not contain the keyword void:
int f (void);
int f( );
a) In C, what is the difference (if any) between using the word void and not using it?
b) Repeat part (a) for C++
Often, when implementing a feature, you won't know how certain events should be handled at the point where they occur and you'd rather defer to the user of your function or class. For example, a XML parser will extract a tag from the source code, wh…
This article will show you some of the more useful Standard Template Library (STL) algorithms through the use of working examples. You will learn about how these algorithms fit into the STL architecture, how they work with STL containers, and why t…
The viewer will learn how to use the return statement in functions in C++. The video will also teach the user how to pass data to a function and have the function return data back for further processing.