// Sum of 2 numbers using pointers
// Version 1.0
// Date 21:36 10/10/2016
// By Ben a.k.a DreamVB

#include <iostream>

using namespace std;
using std::cout;
using std::endl;
using std::cin;

int main(int argc, char *argv[]){
	int a = 0, b = 0,ans=0;
	int *aptr = 0;
	int *bptr = 0;
	
	cout << "Enter two numbers : ";
	cin >> a; cin >> b;

	//Edit num using it's pointer
	aptr = &a;
	bptr = &b;
	//Add the numbers
	ans = (*aptr + *bptr);
	//Show sum
	cout << "Sum of a+b : " << ans << endl;

	system("pause");
	return 0;
}