I want to undertake a project for my own learning. What I want to do is to make a calculator (I'm using VC++ 2008 by the way) that will use booleans to do the calculations (to 'simulate' bits in an actual calculator or computer, or whatever). Yes, I know that c++ has built-in functions and headers to do math, but I want to do it myself. Can anyone refer me to a resource where I could find how such calculations are done? I can currently multiply by powers of 2 by shifting bits (or booleans in this case), but I don't know how I would do any other operations.

Thanks