Turbo C++: Why does printf print expected values, when no variables are passed to it?

The code has undefined behaviour. In Turbo C++, it just so happens that the three variables live at the exact positions on the stack where the missing printf() argument would be. This results in the undefined behaviour manifesting itself by having the “correct” values printed. However, you can’t reasonably rely on this to be the … Read more

Mouse program in Turbo CPP

I do not see the architecture of your program as the important stuff is missing. I would expect you got a list of objects per page with their positions,size,labels,color etc. in form of some arrays of struct and loop through that for booth rendering and mouse handling. Something like this Does anyone know of a … Read more