Click here to Skip to main content
16,007,779 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: where is the problem? Pin
15-Feb-02 21:22
suss15-Feb-02 21:22 
AnswerRe: where is the problem? Pin
alex.barylski15-Feb-02 22:22
alex.barylski15-Feb-02 22:22 
GeneralRe: where is the problem? Pin
16-Feb-02 1:34
suss16-Feb-02 1:34 
GeneralRe: where is the problem? Pin
alex.barylski16-Feb-02 12:01
alex.barylski16-Feb-02 12:01 
GeneralRe: where is the problem? Pin
16-Feb-02 12:21
suss16-Feb-02 12:21 
Generalthis is the right code Pin
16-Feb-02 12:26
suss16-Feb-02 12:26 
GeneralRe: this is the right code Pin
16-Feb-02 12:27
suss16-Feb-02 12:27 
GeneralRe: this is the right code Pin
alex.barylski16-Feb-02 13:31
alex.barylski16-Feb-02 13:31 
Try this

//Construction
//Allocate array to hold n Number of elements

Investors::Investors(UINT nSize)
{
	investorsList = new Investor[nSize*sizeof(Investor)];
}


//Add investor item to array
void Investors::addInvestor(Investor& in)
{     
	investorsList[numOfInvestors] = in;     //Add newElement(in) to next available element of investor array

	insertionSort(investorsList, numOfInvestors);	
	
	numOfInvestors++;	//Increment number of available records
} 

//Destruction
Investors::~Investors()
{
	delete [] investorsList;
}


"An expert is someone who has made all the mistakes in his or her field" - Niels Bohr
GeneralRe: this is the right code Pin
16-Feb-02 14:02
suss16-Feb-02 14:02 
GeneralRe: this is the right code Pin
alex.barylski16-Feb-02 15:34
alex.barylski16-Feb-02 15:34 
GeneralRe: this is the right code Pin
16-Feb-02 20:32
suss16-Feb-02 20:32 
GeneralRe: this is the right code Pin
alex.barylski16-Feb-02 21:54
alex.barylski16-Feb-02 21:54 
GeneralRe: this is the right code Pin
alex.barylski16-Feb-02 21:55
alex.barylski16-Feb-02 21:55 
Generalhelpstring, ODL and ClassWizard Pin
Paul Selormey15-Feb-02 19:40
Paul Selormey15-Feb-02 19:40 
GeneralRe: helpstring, ODL and ClassWizard Pin
14-Mar-02 23:41
suss14-Mar-02 23:41 
GeneralCan't create class with Capital C Pin
tbbooher15-Feb-02 18:45
tbbooher15-Feb-02 18:45 
GeneralRe: Can't create class with Capital C Pin
Atul Dharne15-Feb-02 19:05
Atul Dharne15-Feb-02 19:05 
GeneralRe: Can't create class with Capital C Pin
moliate15-Feb-02 19:50
moliate15-Feb-02 19:50 
GeneralRe: Can't create class with Capital C Pin
alex.barylski15-Feb-02 22:28
alex.barylski15-Feb-02 22:28 
GeneralRe: Can't create class with Capital C Pin
Tim Smith16-Feb-02 2:21
Tim Smith16-Feb-02 2:21 
GeneralRe: Can't create class with Capital C Pin
alex.barylski16-Feb-02 11:17
alex.barylski16-Feb-02 11:17 
GeneralRe: Can't create class with Capital C Pin
Michael Dunn16-Feb-02 9:35
sitebuilderMichael Dunn16-Feb-02 9:35 
QuestionPoints to pixels? Pin
15-Feb-02 18:37
suss15-Feb-02 18:37 
AnswerRe: Points to pixels? Pin
Shog915-Feb-02 19:50
sitebuilderShog915-Feb-02 19:50 
QuestionWhere is the Battleaxe Document Explorer? Pin
Paul Selormey15-Feb-02 18:34
Paul Selormey15-Feb-02 18:34 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.