In the programs seen in previous chapters, all memory needs were determined before program execution by defining the variables needed. But there may be cases where the memory needs of a program can o... Read More
posted @ 2014-02-05 17:39 刺客主谋 Views(451) Comments(0) Diggs(0) Edit
ScopesNamed entities, such as variables, functions, and compound types need to be declared before being used in C++. The point in the program where this declaration happens influences its visibility:1... Read More
posted @ 2014-02-05 17:11 刺客主谋 Views(196) Comments(0) Diggs(0) Edit
Overloaded functionsIn C++, two different functions can have the same name if their parameters are different; either because they have a different number of parameters, or because any of their parameters are of a different type. For example:// overloading functions#include using namespace std;int op Read More
posted @ 2014-02-05 16:39 刺客主谋 Views(168) Comments(0) Diggs(0) Edit
FunctionsFunctions allow to structure programs in segments of code to perform individual tasks. In C++, a function is a group of statements that is given a name, and which can be called from some poi... Read More
posted @ 2014-02-05 16:18 刺客主谋 Views(245) Comments(0) Diggs(0) Edit