// archives

C / C++ / Objective-C

This category contains 4 posts

plotto the office lottery pool iphone app

Update: 2011-08-27 – Price change to $.95! yes, just Ninety-Five cents! Rock out America! – Version 1.1 coming soon! – Also, there’s been some curiosity about data persistence in the app, so let me clear this up. All app data is stored on the phone using a SQLite database. No data is stored remotely and [...]

Book Review: Programming iOS 4

“Programming iOS 4″ by Matt Neuburg; O’Reilly Media Summary: Good book. Lots of background on Objective-C. Good for experienced programmers that are new to programming Objective-C and those needing review of the basics. Great for programmers new to iOS. I’ve just finished reading “Programming iOS 4″ by Matt Neuburg. It’s a book about programming Objective-C [...]

ANSI C++ MySQL Client Wrapper Class

So as you can imagine by the title, I was recently tasked with working on a command line project for MySQL. I wanted to be able to reuse whatever I made, so that meant creating a down and dirty wrapper class for some of the MySQL C API functions. This is my start. Another requirement [...]

CGI Hit Counter

C++ Hit Counter, 1.0. Non-Object Oriented. Pretty light weight. // // HitCounter // @author Randy Melder // @version 1.0 // #include <iostream> #include <fstream> using namespace std; // file name const char *filename = “/tmp/hits.bin”; // quantity of hits struct Hits { long unsigned num_hits; }; void readHitsFile(const char *file_name, Hits *hits); void writeHitsFile(const char [...]