|
|
num1
and num2
as arguments for the parameters ( int a, int b
). Add returns the sum of num1
and num2
, and the program outputs that sum. Have a look here for a full explanation of functions: http://cplusplus.com/doc/tutorial/functions/ and http://cplusplus.com/doc/tutorial/functions2/ and at http://www.learncpp.com chapter 1.4 and chapter 7.