Tip Bank

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

DevX - Software Development Resource

Java Applet Environment

Question: Could you please elaborate on the difference between working in a Javaapplet environment and in a distributed client server environment. Answer: Applets can be used to implement client server

DevX - Software Development Resource

Assigning C-strings

Question: I am just beginning to learn C++ and I’ve stumble on an error that I cannot figure out despite all my efforts. Here is the code where I’m having

DevX - Software Development Resource

Initialization of an Array of Classes

Question: A common practice in C is to do something like this to initialize an array of structs: typedef struct {float x,y,z;} Vector3;Vector3 VecList[] = {{1,0,0},{0,1,0},{0,0,1}};// Now VecList[0] = {1,0,0};//

DevX - Software Development Resource

Buffered Object Streams and Sockets

Question: How can I use buffered I/O Object streams over a socket and guaranteetransmission even when the packet object is smaller than the buffersize? I want the efficiency benefits of

DevX - Software Development Resource

Linking a *.c with a *.h File

Question: As a developer new to C (I’m using Borland C/C++ version 5), I am trying to understand the method of linking *.c and *.h files within an application. First