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(206)
Comments(0)
Diggs(0)
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(171)
Comments(0)
Diggs(0)
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(249)
Comments(0)
Diggs(0)