Tip Bank

DevX - Software Development Resource

Using Vectors

When you’re learning about data structures, you’ll come across a very useful class called vector. It’s basically an array, but it stores its elements dynamically. That means that it can

DevX - Software Development Resource

Trace the Path of Execution

In larger applications, a particular point of code can be achieved by multiple paths. This makes debugging that much more difficult. One alternative is to put debug statements in all

DevX - Software Development Resource

Determine Whether a String is a base64encoded

This function returns TRUE if the string is a base64encoded. Otherwise, it returns FALSE. ‘AUTHOR: KEYUR KALARIA’DATE: JULY 24, 2004’VERY USEFUL FUNCTION AND COULD BE HANDY IF YOUR WORKING AROUND

DevX - Software Development Resource

Disable Inheritance

Use this code to disable inheritance: class A;class Lock { friend class A;private: Lock() {}};class A : virtual public Lock { // …public: A() {} A(int t) {}}; Now, if

DevX - Software Development Resource

Regular Expression Validation in XSD

The following code performs powerful Date type validation in XSD. It validates date fields with timestamp (optional) in yyyyMMdd hh:MM:ss.ffffff format. If your XML file contains the element ValueDate, the