Tip Bank

DevX - Software Development Resource

Overloading + operator

Question: I’ve been working on the + operator in my string class. I came across an interesting dilemma: the following code doesn’t call any of my + operators.For example: String

DevX - Software Development Resource

Function sscanf

Question: Could you tell me what the proper syntax is for the sscanf function, and what return/error codes exist. This was for a Sparc-compiled program. Answer: Though newer programmers seem

DevX - Software Development Resource

Process class

Question: Using VCafe 2.8 in a Win95 enviornment, I’m trying to spawn a local executable during the runtime of a Java application. I’ve tried using: Process p = Runtime.getRuntime().exec(strCmd); but

DevX - Software Development Resource

Viewing referential constraint

Question: Is there any way to see/select/query referential constraints on tables? I have some constraints on a table that I did not create, and I want to see what rules

DevX - Software Development Resource

Using the Exec…() function

Question: How do you use the Exec() function to run another executable program out of your C++ application? The help files have syntax on this, but I need someone to

DevX - Software Development Resource

Switches

Question: I’m attempting to write a command line program which has switch functionality (such as the DOS switches). I’m not sure how to code the program to accept the switches

DevX - Software Development Resource

C++ origins

Question: Who invented C++, and why is it so popular? Answer: C++ was created as an extension to C by AT&T researcher Bjarne Stroustrup, who built the first version of

DevX - Software Development Resource

Percentage of whole, upon a group

Question: Is it possible to display a grouped column as a percentage of the whole? Say I have a table that has two fields: ACCESS_TYP CHRG————————- 10 1.00 10 2.00

DevX - Software Development Resource

Programming

Question: What is the best path to follow if I wanted to learn to program? (VB, then assembly, then …)I need to know what to start with so I can