devxlogo

Tip Bank

Record Retrieveal Using fscanf

Question: If three records have been written to a text file(each record having 3 int fields) and each integer field is seperated by a comma, how do you retrieve only

Returning a Pointer to a Member Function

Question: Let’s say I have a class foo, with a lot of functions that take no arguments and return SomeType: SomeType foo::bar()SomeType foo::quux()SomeType foo::quuux()SomeType foo::quuuux() Now I have a pointer

Get or Set the height of TreeView nodes

In plain VB there is no way to determine or change the height of node elements in a TreeView control. All you need to accomplish both tasks, however, is send

Traverse a Hashtable

Java hashtables are widely used to maintain a mapping relationship between objects. It is easy to store, and retrieve an object from a hashtable using an arbitrary key. Sometimes, it