PostScript Programming
PostScript is a page description language and programming language developed by Adobe Systems.
Here you can find some examples of PostScript programming. All you need is a PostScript interpreter, like Ghostscript, and a software that lets you see the results on the screen, like GSview (similar programs exist for operating systems different from Microsoft Windows).
- Fractal tree
- Von Koch's curve
- Sierpinski's carpet
- Sierpinski's triangle
- Peano's curve
- Graph of the function y = sin(x)
- Graph of the function y = sin(x) + sin(2x)/2 + sin(3x)/3
C Programming
In order to compile a file foo.c on a Linux box you must type gcc -o foo foo.c.
If the compilation is successful, you can run the program by typing ./foo
- Sudoku's solver. This program can solve a classic Sudoku. Once you have compiled the program you can test it with the following data file.
C++ Programming
These programs use the Qt libraries, developed by Trolltech.
The version used is Qt 3.3.4. To compile one of these programs on a Linux box (with the Qt libraries installed), you must decompress the zip file and save its contents on some directory. Then, from this location, just type the following commands:
qmake -project, qmake, make.
- Peano's Curve. This program shows the first iterations of the construction of a continuous curve that fills a square (knows as Peano's curve). The image can be saved as a PostScript file.
- Steganography. With this program you can hide any file inside an image [Steganography], without any perceptible modification of the original image (the only supported image file format is PNG). Warning: the degree of secrecy offered by this program is close to zero! The presence of a file hidden inside an image can be very easily detected by a suitable analysis of the image.
- Mandel. This program let's you visualize and explore the Mandelbrot set (the source code is not very "clean" and can be greatly improved, especially for what concerns the graphical interface and the coloring algorithm.