Definition: Streams are a replacement for printf() and scanf() . Pros: With streams, you do not need to know the type of the object you are printing. You do not have problems with format strings not matching the argument list. (Though with gcc, you do not have that problem with printf either.)
MPprogramming.com Castor : Logic paradigm for C++ Traditional approach to problem solving with computers is all about instructing the computer exactly how to solve the problem. This is called the Imperative paradigm and is based on the Turing machine. Languages such as C, C++, Java, Fortran etc. are all rooted in this paradigm.
This article appeared in C/C++ Users Journal, 17(10), October 1999 . Most people have heard of the standard auto_ptr smart pointer facility, but not everyone uses it daily. That's a shame, because it turns out that auto_ptr neatly solves common C++ design and coding problems, and using it well can lead to more robust code. This article shows how to use auto_ptr correctly to make your code safer--and how to avoid the dangerous but common abuses of auto_ptr that create intermittent and hard-to-diagnose bugs. Why Call It an "Auto" Pointer? Using auto_ptr Effectively