
Since 1998, DevX has helped people start businesses, build websites, and provide enterprise technology to people globally. Interviewing the likes of Microsoft’s co-founder, Steve Ballmer, the publication brings comprehensive, reliable, and accessible insights to the Internet.
Question: What is the difference between cout
Question: What is the C++ equivalent to _getch()? I need to have program control immediately after any keypress in a DOS-based program. Answer: Unfortunately there is no specification in the
Question: How can I turn a text string into an integer? Answer: You can convert a string to an integer by using the atoi function. For example:void foo (){int i
Question: What is the best way to manipulate strings in C++? Answer: Here is an example.#include void foo (char *instring){ // Declare char array big enough to read in input
Question: How can one do 64-bit or larger math calculations in C++? Do you know of a free class or class library that supports large scalar math? Answer: There are
Question: How can I write and delete individual lines of a text file?Also, how can I bubble-sort the whole text file alphabetically? Answer: There is no support in thelanguage to
Question: I have a class with multiple parents. In my copy constructor, should I invoke the parents’ copy constructor or their default constructor? Answer: In all but the rarest of
Question: When I run the following program:#include main(){fstream printer1;printer1.open(“prn”, ios::out);printer1
Question: How do I send the output of my program to the standardprinter installed in Win95 or NT?Is it possible using the
Question: I’m anxious to know why my program is notdisplaying the data, yet it compiles perfectly.I want to read this struct; in particular: age. Ihave two sets of code that
Question: How are Virtual Functions implemented in C++ ? What is a virtual table? Answer: Let me start by saying that the C++ language definition does not impose any implementation
Question: I am wondering how Visual C++ implements class templates. The code below is a simple stack class template that can take all the simple data types (char, int, float,
Question: I have an account with a Web space provider which includes a virtual FTP area.I’m trying to write a perl program that, when run, will copy all files from
Question: An old high school friend said he put a picture of himself on the Web, and to view it I should go to JPEG … WHAT DO I DO???
Question: Why are textures important to the high-end rendering and 3D development market? Answer: At the moment there is a “gold rush for textures” in this market. Companies such as
Question: I need to know how to detect the screen resolution of the client machine. Then I need to tell it to go to specific pages based on what it
Question: Is it possible to really touch something in VRML, not just have a texture map that looks like a touchable surface? Answer: This depends on whether you have the
Question: I’m working on a Web site in Microsoft Front Page, and when I browse the home page in either Netscape of Internet Explorer, all the hyperlinks on the page
Question: Someone told me I have to specify a MIME encoding somewhere on my server. Would you be kind enough to tell me where on a Windows NT server Internet
Question: Is there software out there that allows one to create interactive VRML worlds without knowing how to program? Answer: Yes: Fountain Pro from Caligari, Virtual Home Space Builder from
Question: I’m wondering if/how one can link two or more embedded VRML objects in a single Web page so that both objects would respond to the same key/mouse input. I’m
Question: How can I achieve photographic 3D environments on the Web? Answer: QTVR is a type of movie file format that enables users to navigate photo-quality scenes. There is a
Question: I’m beginning the design of an application where it would be advantageous to be able to programmatically move the position of a control on its form. Is it possible
Question: [Joe Celko’s Production Report Puzzle]We get a production report from work centers which has a date, center code and how many widgets were produced from each batch of raw
Question: [Joe Celko’s Outer (JOIN) Limits Puzzle]Gerard Manko at ARI had a problem in 1994 April. They had just switched over from Paradox to Watcom SQL. The conversion of the
Question: (Joe Celko’s Least Little Thing Puzzle)Gregg Reno asked for an answer to a “Simple SQL puzzle” on the SQL Roundtable section of the DBMS CompuServe forum in March.He wanted
Question: I see the term “AFX” everywhere in the MFC source code.For example, “AFX_MSG_MAP”. What does it mean? Answer: I once asked this of Jeff Harbers, one of the original
Question: What is the best Netscape plug-in for viewing VRML files? Answer: I assume that because Netscape has chosen Live3d, formerly the WebFX browser from Paper Software, to be the
Question: What are the disadvantages of ODBC versus SQL? Answer: ODBC is a generic implementation, whereas native SQL is always optimized for the database server being used. Thus, if you
Question: Can I determine which employees have received a salary for a month that is more than twice the average salary in that month? I need to show:month_number, average salary,