Tip Bank

DevX - Software Development Resource

Array of Objects

Question: I have two questions. How do I pass an array of objects as an argument? How do I fix an error like “do or while loops are not expanded

DevX - Software Development Resource

Memory Stack vs. Free Store

Question: When using C++, is it better to use stack or free store memory for data objects of medium to large size? I have multiplatform concerns on the answer. The

DevX - Software Development Resource

Implicit Function Declaration

Question: I am a Computer Science student, and I am trying to compile a program where I use multiple files and my own header file for the first time. But

DevX - Software Development Resource

Exporting Templates Under C++

Question: How do I create a template library so that I can export templates and use them in different programs? Answer: I’m not sure I understand what you mean by

DevX - Software Development Resource

Circular Pointers

Question: I’m trying to make two classes point to one another. I know the syntax is weird, but it’s just to illustrate: class x{ y* ptry; }class y{ x* ptrx;

DevX - Software Development Resource

Creating a Crosstab

Question: How can I create a crosstab in SQL Server 7.0? I’m used to Microsoft Access, where I can use columnheading and rowheading. Does this work in SQL? Answer: This

DevX - Software Development Resource

Extracting Dates

Question: How do I extract dates from SQL where the date type is a datetimestamp? I have the following SQL statement: select * from Patient where PatientDOB = “03/01/58” It

DevX - Software Development Resource

Insert Trigger on Parent Table

Question: I have two tables and both tables have a one-to-many relationship. I want to add a new single record in the first “transheader” table (key is autonumber) and get