C Programming

As I carried on programming I began to move over to C coding. C produced faster tighter code, and all round was a nicer language to code in than Pascal. Fortunately my first C/C++ compiler was Borland C++ v5.0 (at a cost of £230 to myself!). This compiler also used the Borland Graphics Interface (BGI) so all the graphics routines were very similar to those I had got used to.

Although not particularly impressive the above picture demonstrates the use of four shapes to form what is supposed to be a spaceship of sorts. It consists of 2 shapes for the wings, that are exactly the same just inverted in one axis. The pole up the middle is another shape, and the "cockpit" is yet another shape. This was something I wrote to prove that I could to myself. The image is displayed using the painter algorithm (!) and the sort is performed using a bubble sort (sorry to all those programmers out there, I should have known better but it is about 3 years old). In actuality although this was based on the Pascal Code that I had previously written, the Pascal demo on the PAscal Coding page is far newer (about 6 months old). The original Pascal paramteric graph generator I made only had one image and I decided to update it to make it a little more "modern".

To see the C code click here.

To download the executable click here.