#include <cstdlib>
#include <iostream>
#include <string>
#include <cmath>
using namespace std;
/* purpose: SHOW ++ in action */
int main()
{
cout << boolalpha;
int quantity;
int value;
quantity = 5;
value = 3 + (quantity++);
// after this,
// value is 8 -- 3 + quantity-before-incrementing,
// quantity is 6
cout << "after value = 3 + (quantity++);" << endl
<< "value: " << value << endl
<< "quantity: " << quantity << endl;
quantity = 5;
value = 3 + (++quantity);
// after this,
// value is 9 -- 3 + quantity-after-incrementing,
// quantity is 6
cout << "after value = 3 + (++quantity);" << endl
<< "value: " << value << endl
<< "quantity: " << quantity << endl;
return EXIT_SUCCESS;
}