We are an award-winning tech entrepreneurship website where trusted experts can provide value globally.

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.

devxlogo

Trusted for 26 years

Over 30K Articles

1M+ Readers

Expert-reviewed

10K+ Tech Terms

As seen in:

microsoft logo
business_insider_logo
wired_logo
berkley
arstechnica_logo
hackernoon

The Latest

DevX - Software Development Resource

‘Structs and classes

Question: Please examine my code and tell me what I am doing wrong!This is the first part of my program:#include #include class LinkedLst{ public: LinkedLst(); //Constructor void AddToFront(int Value); //Add

DevX - Software Development Resource

Overloading the assignment operator “=”

Question: I am puzzled at the way in which the assignment operator is overloaded in C++. Would you please show an example as to what efficient code for overloading this

DevX - Software Development Resource

ActiveX and Delphi

Question: Does Delphi support ActiveX? If so, do I need something extra to run ActiveX controls in Delphi? Answer: As long as the OCX is registered (which you can do

DevX - Software Development Resource

Type conversion

Question: How does one convert a double to an int? Is there a function like floor that actually returns an int? Answer: There are many things you can do to

DevX - Software Development Resource

The time.h Header File

Question: I am trying to write a program that provides a constructor that’s capable of using the current time from the time() function declared in the C standard library header

DevX - Software Development Resource

Processor fault

Question: Why do I get with the following program, this error: general protection exeption, 0x215f:0x1ef3timer(1) 0x215f:0x1ef3 Processor fault.Program (very small):#include #include int get_value (int _value);void main (void){ int _time=0; int

DevX - Software Development Resource

Two-dimensional array

Question: How can I dynamically declare a 2D array and pass it as a parameter to a function?Here’s an example of what I’m trying to do:#include #include #include const SIZE

DevX - Software Development Resource

Exporting data

Question: I wasn’t able to find out what all the command line switches for dbexport do. The only ones I found were -o and -c.Is there a way to export

DevX - Software Development Resource

What happens to dangling pointers in java?

Question: What happens to dangling pointers in Java? Supposedly there is garbage collection, but when is it performed? From what Ihave read, it seems really easy to have persistent danglingpointers

DevX - Software Development Resource

Initializing a deck of cards using a for-loop

Question: I have two enumerated types: enum suit_type{club,diamond,heart,spade} and enum rank_type{ace,two,…,queen,king}. In structure CARD, I have the variables suit_type suit and rank_type rank. In class PILE, I have a private

DevX - Software Development Resource

Virtual function tables

Question: I would like to know what virtual function tables are. When one refers to vtables, is it a virtual function table that is implied? Answer: In short, vtables are

DevX - Software Development Resource

Destructor-explicit invocation

Question: If the destructor is called from a new’ed object (a->A::~A()), is the object’s instance deleted? Answer: No. A destructor is a special member function of a class that is

DevX - Software Development Resource

Virtual function is abstract

Question: We are getting an error message that says a function fromwithin a class C cannot allocate instanceof type C because one of the virtual functions(the one we wrote) is

DevX - Software Development Resource

Memory re-allocation

Question: Is there a standard method/operator in C++ analogous to standard C’s realloc() function that enables resizing of dynamic memory allocated by new operator? Answer: There is no standard call

DevX - Software Development Resource

C++ Program Performance Monitor

Question: Do you know of a good tool for getting performance data on a pure C++ program?I need a tool that indicates sections of code thatuse the most CPU/memory, etc.

DevX - Software Development Resource

Inherited operator = not being seen

Question: I have a templated class A that defines two operator =, and a templated class B : public class A which should inherit the two virtual a::operator = I

DevX - Software Development Resource

Constructor with static members in library

Question: Background: Digital UNIX 3.2g, Alpha platform, latest GNU.From the FAQ, I know that you are supposed to declare static member variables externally from the declaration and inonly one place.

DevX - Software Development Resource

How to move from beginner to intermediate C/C++

Question: I am a C/C++ programmer who is moving from the beginner to intermediate level. My question is, how does one move successfully from the beginner to intermediate level? Answer:

DevX - Software Development Resource

C++ Classes

Question: I have written a program with two classes. Each uses the other within it and contains pointers to the other. However, this means that the first class encountered by

DevX - Software Development Resource

Array of structures

Question: I have a typedef structure that holds info for employees, and an array of these structures. I need to access a part of the structure for one employee. How

DevX - Software Development Resource

Class constructor

Question: I’ve read that there are two ways to define a class constructor. For example:class List…1. List():num(0) { }2. List() { num=0; }Why is the first one more efficient at

DevX - Software Development Resource

A problem with a class Screen

Question: I found on the Web a simple class Screen as follows: /*———————————————— * s c r e e n . h * * A class to manage an ANSI

DevX - Software Development Resource

IMG tag and relative/evaluated location

Question: We have a structure already defined that is now being modified, containing more than 400 pages that include IMG tags. The entire “mess” is being moved to another server/structure