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
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
There is no need to restrict your users’ ability to use apostrophes or quote characters in input. This simple filtering technique allows unrestricted use of quotes and apostrophes, and can
This is in response to the tip Execute a Process Without a Hang. When I need to stdin, stdout and stderr at the same time, I use different threads to
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
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
A method can take variable number of arguments. Method overloading is handy when the number of variations is finite?meaning that there is a small number of variations in the arguments
Have you ever had code like this? for ( int i = 0 ; i < m_iNumElements ; i++ ){ m_fVector[i] = m_pcFrustum->m_psViewProj->m_psProjection->m_someArray[i];{ This can be very frustrating. For every
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
Whenever possible, use C++ arrays. Array indexing has an order of magnitude of O(1). This means that it is very fast. However, if the size of the array is not