Tip Bank

DevX - Software Development Resource

Using Insert Iterators

Insert iterators come in very handy when you need to populate a container using an STL algorithm which uses an assignment operator to fill in the data: int iArr []

DevX - Software Development Resource

Partially Optional Function Parameters in VBScript 5.0+

As you know, VBScript doesn’t support the declaration of optional parameters in subroutines or functions. So, if you have a function declared as: Myfunction(p1,p2,p3), to simulate optional parameters, you’d have

DevX - Software Development Resource

Using STL Binders

You can use STL binders to use binary function objects as unary function objects in many STL algorithms which need them. Suppose you need to find the count of strings

DevX - Software Development Resource

Shutdown/Restart Windows Without Long API Calls

To shutdown Windows, just type the following code: Shell “shutdown -s -t 00” To restart windows: Shell “shutdown -r -t 00” Here’s the key: -s means shutdown. -r means restart.