Friday, January 30, 2009

Fahrenheit Virgo

Still programming in C. I am still doing the basics, nothing spectacular. For now anyway. Still far along from contributing any cool apps.

This is another introductory program that converts Fahrenheit into Celsius--a bit more complex than just printf( . But this one lets beginners become more familiar with while/for loop functions.

Anyone could find this little program in any ANSI standard introductory text, but my concern was learning, besides C, to program on Linux as opposed to Windows. The difference? More terminal commands. I like the terminal.

Actually, on Windows I had to install a compiler program Dev-C++, which includes the ANSI library for the entire C/C++ language. From my understanding, Windows cannot compile C files. This is basically more of a GUI interface. In fact, the only thing you really need to do in the command prompt is find the file and run it. Simply Windows. On the other hand, Linux, Ubuntu anyway, has the standard library installed directly into the kernel. Just open up a text editor and a terminal; no third party app needed. Granted there are a few extra steps to running the program but that's about it.

No comments: