Originally Posted by

**n4x0**
I wonder how can it be done... Can you say me more or less how is it?

For what i know what he is doing is more or less an interpreter. That is, he reads a file, indentify commands, internally store variables for it (if there is variable declarations), and "translates" the commands he found to C++ stuff and so on...

I dunno to which degree this is a "virtual machine", but you can "easily" do interpreters that will read a file write with a set of commands you define and execute it.

In a REAL basic way, thats is all compilers do, since they translate, C/C++/C#/Java/Delhpi/Whatever to Assembly code the CPU can actually understand.

Originally Posted by

**SteveGod**
I should ask whether maths can help us to edit C++ better. I should not say "whether we need to good at maths".

In the future, I will learn about DirectX that seems to refer to mathematics. So I don't know whether maths can help us to edit C++ for making games.

Depends what you want. If you plan to work with desktop applications or the such i can say that math will (almost) never be util to you.

On the other hand, if you plan to be a game developer, math (specially linear algebra) is all that you will think about, and C++ will be a secondary aspect of it.

Math is the heart and soul of 3D programming, and, while APIs like DirectX and OpenGL offer a good level of "abstraction" to all the math, the best you know it (math), the better your games are gonna be (engine wise of course, writing fun games has nothing to do with math).

Note that i just mentioned rendering, but other aspects of game (like physic simulations) will need a very good understment of math (and physics).

In other areas of computer science math is also a very important matter (like in cryptography), and goes way beyond linear algebra.

Cheers,

KM

**"Things are like they are because thats how they are suposed to be"**