devxlogo

May 1, 1997

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

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

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

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