Archive | October, 2008

Pass By Reference

//******************************************************* // We introduce the concept of pass by referance // The difference between a method which is //implemented by using pass by referance and which is not //******************************************************* #include #includeusing namespace std; //Defining a method which calculates the square of given number int getSquare1(int num1); int getSquare2(int &num2); int main(int argc, char *argv[]) { [...]

daha fazlası →