//============================================================================
// Amory KC Wong
// Carson Graham Secondary
// 2019-04-06
// Example 2.2 program
//============================================================================

#include <iostream>
#include <string>
using namespace std;

int add(int a, int b) {		// local parameters, only this function will see 'a' and 'b'
	return a + b;			// these parameters disappear after the function exits
}

int main() {
	int aa = 78;		// local variable, only this function will see 'aa'
	int b = 99;			// local variable, only this function will see 'b'
	cout << "adding " << aa << " + " << b << " = " << add(aa, b) << endl;

	string wait;		// this waits for user input, this is for systems that open a new window
	cin >> wait;		// it will let you see your results before closing the window
	return 0;
}
