Tip Bank

DevX

Executing a Subprocess

To be able to read from two streams, you need two threads. A common mistake is to start a process and then only read standard out (stdout. Another mistake is

DevX

Detect an Operator Overloading a Class

How can you detect if a class overloads a particular operator when you don’t have the source for the class? You can define the operator globally so that it accepts

DevX

Restricting Implicit Conversion

The compiler performs implicit conversion whenever it feels the need for it. For example: class test{ public: test (int y) : h(y) {} int h;};void func (test t){ cout

DevX

Make Your Servlet Code Reusable

Oftentimes, you have a bit of logic or a block of code that’s repeated in all your servlets. Or you may need to check or validate the doGet() or doPost()