June 12, 2000

The binary_search Algorithm

STL’s binary_search() algorithm traverses a sequence and returns a Boolean value indicating whether the sought-after element exists in that sequence. binary_search() is declared in the header as follows: bool binary_search

Useful STL Terminology

Here are some key terms that you may find useful for reading Standard Template Library (STL) literature and documentation. ContainerA container is an object that stores objects as its elements.

Blocking Object Copying and Assignment

To block copying and assignment of an object, explicitly declare the assignment operator and copy constructor private. Don’t define them, (there’s no point in defining them because they can’t be

Accessing SQL and Visual Basic

Question: I am developing a database program using Access and Visual Basic. I want to display data in a form where the data comes from two tables. For example, the

Ordering Query Output By Two Fields

Question: I want to order the output of my query by two fields. Is this possible? That is, if two values are the same, I want the output ordered by

Datatype Decision

Question: I have a field that stores lots of data (up to 8,000 characters). I thought that I could maybe save disk space if I stored this data as varbinary

Autonumbering in SQL

Question: I am having to reformat data for addition to a database. My current struggle involves an identification field for certain records. In the new database it needs to be