This is a handy doc...

http://www.stonehill.edu/cs1/TE/notespdf.htm

Pascal to C++ (Easier to understand for us Pascalies)