Because Microsoft chose C++ as the language of Windows programming API and C++ is typically used in Unix and Linux programming systems, most books and many online resources present code written in C++ that can be very enigmatic to Delphi programmers. For commericial reasons C++ continues to be the principle language of discourse in the programming community, despite the fact that it based on ancient technology and the earliest attempts to build computer languages and compilers, and retains all of its obsolete syntax as a result. (Another superior language, which incorporates decades of research into language and compiler developement is Eiffel, which is simple, the new paradigm, even stricter than Delphi in many ways, and yet very powerful due to both its simplified syntax and the optimized code that results. The end result of compiler and programming research over a period of almost forty years is that a CPU with simple instructions and a compiler and language that is simplified results in superior execution speeds, with a RISC (Reduced Instruction Set Computer) always beating an Intel or Unix computer in performance for the same CPU speed. Nevertheless C++ has the weight of historical precedence behind it, even if it is not the best language, as all those bugs, buffer over runs, and security patches testify. For all these reasons, I have found it neccesary to understand C++ code, even if I don't plan to write much of it myself, (prefering myself to learn Fortran 90 or Eiffel instead as additonal programming languages) and so I have begun to research the syntax and organization of C++ code, and the Delphi equivalents, and will be posting the results on this page.
As I encounter more enigmas in C++ code and interpret them, these pages will be updated accordingly (my goal is to be able to read and translate C++ code). Some of the pages below rely on what is discussed on other pages (for example there is a page on pointers, but pointers are also discussed in the section on structures. I have tried to organize this material logically, but you might find it useful to jump back and forth a couple of times between pages, if you are unfamiliar with some of the features of C++)
C++ Operators
Scope of variables in C++
If - then - else structures in C++
The Switch statement
For, while and do loops in C++
Structures - records in C++
C++ pointers, the stack and the heap
Passing variables by reference and by value
C++ File I/O
C++ header interface files
Classes and inheritance
In addition to the discussion of C++ on this page, I have also included some examples of programs translated from C++ source code to Delphi to illustrate some of the points made in the articles linked to from this index page, and I post links to them below as they appear...
Translating C++ code to create a grey scale histogram June 16th, 2002
A Unified Field Theory
![]()
The Unified Field Theory
is also available as a zip file -> unified.zip
Introduction :The Pioneer Effect and the New Physics. A brief description of the new physics required to explain the 'Pioneer Effect', which is the constant deceleration of space craft as they fly through space.

