Author: Administrator
#include <cstdio> #include <cstdlib> #include <ctime> #include <string> usingnamespace std; class ifstree { public: float minfactor; float maxfactor; float bend; float angle; float initlen; int fdim; ifstree(); void turnleft(float ang) { printf(“lt %4.2f\n”, ang); }; void turnright(float ang) { printf(“rt %4.2f\n”, ang); }; void movefw(float value) { printf(“fw %4.2f\n”, value); }; void movebw(float value) { … Read More “Fractal Tree C++ Logo Output” »
I am planning to do practice some javascript programming at the console rather than embedded in a web page. My main system runs windows so it does support jscript in the windows scripting host. However, I want something better than what windows provides. One of the possibilities was Google’s V8 interpreter, the fastest javascript interpreter … Read More “Javascript” »
I was trying out Haiku, a updated and maintained version of BeOS. The interface is a neat but takes getting used to as it very much different than windows or any flavor of linux. The icons are cute and performance seems well even though I was running it in a virtual environment. It uses a … Read More “Haiku” »
The following program (written in C++) creates a filter program for converting ascii into ROT13 encoding. A very simple cypher where each character in the alphabet is replaced with the 13th letter from its position. To download a compiled windows compatible binary, click here. #include <cstring> #include <cstdio> #include <cctype> using namespace std; char translate(char … Read More “ROT13 C++” »
Lately I been using a dialect of the LOGO programming language (papert). Today I wrote a fractal tree drawing which I am impressed after trying to get the angles right, based on a earlier experiment that used 45 degree angles this one is based on a more natural looking 30 degrees. The result is a … Read More “A Tree in Logo” »
