Tip Bank

DevX - Software Development Resource

Treating a Vector As an Array

In certain contexts, you have to treat a vector as an array of its elements. For example, suppose you have a function that takes int * as its argument. How

DevX - Software Development Resource

The erase() Member Function of Associative Containers

The associative containers std::map, std::multimap, std::set, and std::multiset have the following three overloaded forms of the member function erase(): class map // simplified for brevity{public://..other members void erase(iterator position); //

DevX - Software Development Resource

Constructors and Member Variables

Question: After I have already declared an object, how can I call its constructor again to re-initialize its member variables? Answer: You can’t do that. C++ guarantees that for each

DevX - Software Development Resource

Static Methods

Question: What is the purpose of static methods in Java? Answer: Static methods can be invoked without an instance of an object. They provide the ability to execute methods in

DevX - Software Development Resource

Object Class

Question: Every class in Java is supposed to extend the Object class by default. In case a user class extends some other class (e.g., if myclassextends yourclass), then is it

DevX - Software Development Resource

LOCATE versus GO TOP

Question: Which is faster, LOCATE (without parameters) or GO TOP? How fast is the one from the other? Why is one faster than the other? Answer: They are usually equal

DevX - Software Development Resource

Forms in Informix OnLine 7.2

Question: In Informix SE, I can use ISQL to generate a default form from a table and then query, update, or delete data within the form? How do I do

DevX - Software Development Resource

Ontape for Backups to Disk

Question: How can ‘Ontape’ functions be used to back up Informix/Lawson DB to disk? Is dbspace required or can a large area in a directory (e.g., /gsc/bigspace) be used? Answer:

DevX - Software Development Resource

Memory Initialization Problems

Question: I cannot initialize the program after I have installed it. When I run “oninit”, it seems to work, but then when I run “onstat” it tells me that the