PtoC will apparently convert Pascal to C++. There are many such tools out there to convert between programming langauges, you just have to search for them on Google. However, they are usually imprecise, so you have to fix up the result afterward. The best way to convert is to learn each programming language you want to convert between and do the conversion manually.