devxlogo

Tip Bank

Variant Records

Question: Does Java support an equivalent to the Pascal variant record or C union? I need to port some code to Java that uses these constructs. Answer: No, Java does

printing all the source code

Question: Is there any way to print all the source code in an application or library? Answer: You can use a product called PowerDoc to achieve this, or you could

Integers: signed and unsigned

Question: I am reading Sams’s Learn C++ in 21 Days, and this sentence doesn’t make sense to me: “Because you have the same number of bytes for both signed and

Convert function

Question: I am trying to do the SQL statements on the client side. Because I have declare int in the database, I need to convert the column before I can

Positioning System.out.print

Question: How can I position the System.out.print cursor when printing to the DOS window? Specifically, how can I print to specific positions on the DOS window without printing one continuous

Linked List

Question: I need some help with this C++ add function.It adds a new node to the end of the list. I need it to add it to the beginning of

Cloning: Shallow vs. Deep Copies

Question: I am seeking to clone an object that contains anarray of the type float[][] which in turn contains primitive types. Using super.clone() and a clonable interface in the class

How standard is the string class ?

Question: We may want to use the C++ string class if itis specified as part of some open standard andis not just provided by the g++ compiler. Is the string

Access controls inside a tab object

Question: How can I access the controls placed on a tabpage in a tab object (for example, from a user event on a sheet window containing the tab object, to