Tip Bank

DevX - Software Development Resource

Understanding Zero Initialization

To zero-initialize an object of type T means that the memory storage occupied by the object is set to binary zeros. More precisely, if T is a built-in data type,

DevX - Software Development Resource

Rounding a Number Up and Down

The standard &ltmath.h> header declares the function ceil() and floor(). These function round the fractional part of a floating point number. ceil() returns the smallest integer that is no less

DevX - Software Development Resource

Declaring a Volatile Member Function

You’re probably familiar with const member functions such as: class A { public: int get_x() const; // can’t change A’s state }; C++ also supports volatile member functions. You declare

DevX - Software Development Resource

The this Pointer

In the body of a non-static member function, the keyword this is a non-lvalue expression whose value is the address of the object for which the function is called. However,

DevX - Software Development Resource

Copy and Delete Files Using ASP Code

Question: How do I copy files from point A to point B from within my ASP page? After I have used the file that has been transferred to point B,

DevX - Software Development Resource

Overloading Operator

Question: How do I overload the ++ operator to work with an enum variable? For example, I defined SuitType to be {Heat, Club, Diamond, Spade}. I want to use s++

DevX - Software Development Resource

Anonymous Inner Classes

Question: Is it possible for an anonymous inner class to extend a class andimplement an interface, or for it to implement two or more interfaces? Answer: The only way an

DevX - Software Development Resource

Calling a C Program

Question: I’ve created a console C program that has parameters input on thecommand line and would like to create a Java application that selectsthe parameters and calls the C program