devxlogo

Tip Bank

Cross-platform socket communication

Question: I am writing a server written in Java that needs to take input from a game written in Visual Basic and sends the output to clients on the Internet.

Java and videoconferencing

Question: I am conducting a study of operating system capabilities to support desktop videoconferencing.Would Java be a good Operating System for this purpose? Answer: Java itself is not an operating

Coming Events

If you are extending an AWT Component, such as a Canvas to write your own control, then you will probably want it to trigger events that the super class does

Overloading postfix and prefix ++

For primitive types the C++ language distinguishes between ++x; and x++; as well as between –x; and x–;For objects requiring a distinction between prefix and postfix overloaded operators, the following

Assignment operator is not inherited

Unlike ordinary base class member functions, assignment operator is not inherited. It may be re-defined by the implementer of the derived class or else it is automatically synthesized by the

Tame Truncated Text

You may notice that the first or last character in a Label’s text can get partially chopped off by some implementations of the Java Virtual Machine. Older versions of browsers

Manage the Margins

LayoutManagers control the locations of AWT Components, such as Labels, Buttons and TextFields within Containers, such as Frames, Applets and Panels. Some of the five LayoutManagers included with Java 1.1

String arrays and pointers in C++

Question: I declared a string array, char *cities[15];, to hold the names of 15 cities. I want to allow the user to enter the 15 cities, but I do not

General Protection Fault

Question: #include #include void main(){ randomize(); const int max_num=1000; int value[max_num]={0}; const num_word_per_line=8; cout