C, C++, C#

Comparing OOP in php, java, and C++

By greg | Posted in C++ and C#, PHP Advanced

Sample introductory Object Oriented Programming code in php, java, and C++ showing the similarities and differences. Never-the-less, OOP, despite all the bragging we hear about it, is a lot more expensive to write and to maintain than clean structured code. The reality of it does not live up to the theory, ...
Read more »

accessing a MySQL db

By greg | Posted in C

4 sample C utility programs that came with MySQL 1. connect_test.c 2. select_test.c 3. insert_test.c 4. list_test.c They came with the disclaimer below. /* connect_test.c A program to connect...
Read more »

screen I/O pgm

By greg | Posted in C

screen I/O pgm in C & Pascal This program will go through a list of songs, throwing out one song or another until it finds a total time that most nearly matches the target time. It will display and write to a (text) file the new (sub) list and, separately,...
Read more »

[C] File I/O and params

By greg | Posted in C

Simple example of file I/O, buffering, and input parameters. The pgm breaks a file into diskette (or any) size pieces. if the parameters are not correct, instructions are written to the screen. #include ...
Read more »