/*
╔════════════════════╗
║ Pointer Practice 2 ║
╚════════════════════╝
Instead of declaring a simple type, use the "new" keyword.
Use this pointer to set the value.
Functions take only pointers as parameters.
*/
#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 pointers to two integers (a and b).
// add the value of b to a (a is the accumulator variable, as in a+=b).


int main(){
	// TODO: declare ONLY the pointers to two integers,
	// using the new keyword
	// = new int;
	// = new int;

	// TODO: Set initial values using the * syntax
	// set "what the a pointer points to" to 3, 
	// and "what the b pointer points to" to 4,
	// as in the previous example.


	// Inspect the values using the * syntax
	cout << "value of what a_ptr points to: " << *a_ptr << endl;
	cout << "value of what b_ptr points to: " << *b_ptr << endl;
	// TODO: call addNum()

	// inspect the values after the function call
	cout << "### after addNum(): ###\n";
	cout << "value of what a_ptr points to: " << *a_ptr << endl;
	cout << "value of what b_ptr points to: " << *b_ptr << endl;

	return 0;
}