// Struct Demo showing how to display amd edit values.
// Date 00:12 29/10/2016
// By Ben a.k.a DreamVB

#include <iostream>

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

struct BoxRect
{
	int Top;
	int Left;
	int Right;
	int Bottom;
};

int main(int argc, char *argv[]){
	BoxRect box = { 0, 0, 100, 200 };

	cout << "Box Properties: " << endl;
	cout << "Top     : " << box.Top << endl;
	cout << "Left    : " << box.Left << endl;
	cout << "Right   : " << box.Right << endl;
	cout << "Bottom  : " << box.Bottom << endl;

	//Inc some values.
	box.Left = 5;
	box.Top = 5;
	box.Bottom -= 50;

	cout << "Box New Properties: " << endl;
	cout << "Top     : " << box.Top << endl;
	cout << "Left    : " << box.Left << endl;
	cout << "Right   : " << box.Right << endl;
	cout << "Bottom  : " << box.Bottom << endl;

	system("pause");
	return 0;
}
