/*
╔════════════════════╗
║ Pointer Practice 1 ║
╚════════════════════╝
First, start by learning how to assign the addresses of simple types.

Functions take only pointers as parameters,
and have a return type of void.
*/

#include <cstdlib> // rand() and srand()
#include <ctime>   // system time
#include <iomanip>  // setw() and formatting
#include <iostream> // basic i/o
#include <string>
using namespace std;

// TODO: void addNum()
// pass the pointers to two integers (a and b).
// add the value of b to a (a is the accumulator variable, as in a+=b).
// void addNum(){
	// TODO: add "what b points to" to "what a points to"
	// this can use the operator +=
	//return;
//}

int main(){

	// TODO: declare the integers a & b.
	// TODO: declare the pointers to those integers,
	//  and initialize them to the addresses of a and b
	// Set initial values
	a = 3;
	b = 4;
	// Inspect the values
	cout << "value of a: " << a << endl;
	cout << "value of b: " << b << endl;
	// TODO: call addNum()
	
	// inspect the values after the function call
	cout << "### after addNum(): ###\n";
	cout << "value of a: " << a << endl;
	cout << "value of b: " << b << endl;

	return 0;
}