CUJ Logo

April 1996
Vol. 14, No. 04

UNIX

The OSE C++ Libraries

George Patapis
In the best spirit of the UNIX community, the Australian Overseas Telecommunications Centre has made this C++ code available via FTP. A no-fee license makes this library hard to resist.

Shared Memories as Files

Marco Savard
Shared memories are a real convenience at times under UNIX, but using them can be a bit cumbersome unless youre content to treat them as specialized files.

A Portable Multiprocess Gateway in C++

Seekamp, Domrow, Wrobel, and Bulka
Controlling multiple threads is intrinsically messy and nonportable. But you can still implement a remarkably portable interface with some judicious class design.

FEATURES

An Object-Oriented Expression Evaluator

Joey Rogers
If you have to write yet another expression evaluator, maybe this time you should start with a set of classes that does most of the hard bits.

Image Processing in C, Part 16: Random Dot Stereograms

Dwayne Phillips
Ever wonder how those 3-D posters work? Heres the secret, and the code you need to generate your own.

COLUMNS

Standard C/C++: The Header <iterator>, Part 1

P. J. Plauger
STLs iterators come in a variety flavors and colors. Categorizing them helps you choose just the right iterator for the task at hand.

The Column that Needs a Name: Recovering from Parsing Errors

Dan Saks
Adding error handling to even a simple parser can turn your code to spaghetti if youre not careful. This month Dan shows how to create clean error-handling code with C++ exceptions.

The Learning C/C++urve: Controlling Silent Conversions

Bobby Schmidt
A properly designed Boolean will convert silently with some types, and raise a clamor with others. Bobby tweaks his boolean class to handle conversions as sensibly as a builtin type.

Questions & Answers: Parentheses Won't Fix Everything

Pete Becker
Whats obvious to the eye isnt always obvious to a compiler. In particular, adding parentheses may not resolve order-of-evaluation ambiguities. Pete explains why, and corrects a few misconceptions.

DEPARTMENTS

Editors Forum

New Products

We Have Mail