Compiling and running code in the terminal

hay
in this thread, I asked about connecting the orangutan to the serial port throw the serial adapter. Now here is the thing, I have ubuntu and Adam showed me a code written for XP. By the look of it, that code can run on my ubuntu terminal. I just don’t know how do I compile it and run it.

Never mind, I got it…