C++

Cross Platform Logging in C++

The usual Developer's dilemma here, I went on a hunt to try and find a decent open source cross platform C++ library that offered a good logging system. One that would write proper text logs on mac/linux and write either to the event viewer/text file on windows machines. Well all the systems I found out there worked really good on one platform but seriously lack in other areas. So in typical open source fashion I figured I would write my own that would be generic and fit my current needs.

Breaks

A little while ago I had the task of creating a break out clone, but was only given 24hrs to get as far as possible with it. This is the result of the 24hr session. Written in C++ with the SDL libraries, specifically for mac OSX. Other than basic functionality for a break out clone this more of a rough draft than a completed game.

Screenshots: 

Vorilon

Vorilon is a voice teleconferencing software that is in the works. The premises is that vorilon will be the server component with a library that will easily add voice communication to other programs. Similar to like ventrilo in terms of voice chat but that is about where the similarities will end.

Screenshots: 

Maze

Maze is a simple game of collecting green $ for points while trying to get to the exit.  This version doesn't have any enemies.  The maps are randomly drawn using assembly and is displayed to the console via ncurses.

Screenshots: 

Bouncy Ball with Ncurses

So a while ago now I had an assignment in school to write a program for algorithm design. The basis of the program was to have an O go across the screen leaving a trail of Xs for each spot that it occupied. The original program I wrote was in MS Visual Studio using C++ .net functionality and was fairly fast but not that fast in terms of running speed. That was the one I submitted though as it was part of the requirements. But I couldn't leave it at that and went back and converted it over to be a straight unix program and used ncurses to draw.

Guess a Number between 1 and 100

Going through a few of my archives of various what nots I came across this bit of C++ code, it was the first program I wrote after the typical hello world program. Very simple C++ program just generates a random number between 1 and 100 and gives the user a couple of tries to guess it. Guess even back then I used a fair amount of shorthand at least not to the point that I can't look at it myself and see what is going on.

#include <iostream.h>
#include <stdlib.h>
#include <time.h>

void main(void)
{
        int i, magic, guess, j;
        j=0;
        srand ( (unsigned)time( NULL ));

Syndicate content