Equations

Thursday 10 September 2009

To C or not to C

It has been a long time since I did some serious programming. My first venture was programming in BASIC when computers were introduced in standard VII in 1987. I learnt programming in BASIC first on BBC Micro and then later graduated to PC-AT. When I went to the engineering school, I was introduced to FORTRAN and as C was being considered the language to learn and use, I developed and enthusiasm for the language. I did some programming using C and then tried migrating to C++ while I was at IISc. However, for most of my programming needs, C sufficed and the only aspect of C++ in my programs were the friendlier input and output commands - the cin and cout. I found these easier than the scanf and printf commands in C. Another useful thing was the much easier dynamic memory allocation in C++ rather than the malloc.