Here is a sample code,
This style of writing code is taught to us at our college.
And this code runs well over Turbo C++ 3.0 compiler(16 bit).
[b]fault 1:[/b] if I compile this code over any latest version of Compiler like VC++, Turbo C++ 2006 etc.(32 bit). graphics.h not found.
ok ok this code might be made for a 16 bit environment, but [u][italic]if I want to check for DDAline drawing or Bresenham line drawing alogorithms over a 32 bit env. then what header files are to be included and what functions will be used for putting pixel or drawing line.[/italic][/u]
[b]fault 2:[/b] Here we are writing void main() and it works without a single warning. why we need to write int main()....why OS need integer to be returned.
first preference to fault 1.