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

C / C++ / MFC

 
Questionwhere is the problem? Pin
15-Feb-02 19:59
suss15-Feb-02 19:59 
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 
void Investors:: addInvestor(Investor& in)
{ 
    Investor* temp = new Investor[numOfInvestors+1];  //create a new investor array of size of prevArray+1
	if (investorsList == NULL)                        //check if there is something in the array	
	{
		investorsList = temp;                         //save temp in investorsList
		investorsList[0] = in;                        //fill the first element with the investor that you want to add 
	}                                                 //to your list
	else                                              //else if the investorsList is not NULL
	{
		for (int i = 0; i< numOfInvestors; i++)       //in this loop you start copying the elements of the prevlist in
		{                                             //the new temp list
			temp[i] = investorsList[i];	
			cout <<investorslist[i]<<endl;
 }
="" temp[numofinvestors]="in;" copy="" the="" new="" element="" in="" last="" position
="" numofinvestors++;="" increment="" numofinvestors
="" delete="" []="" investorslist;="" old="" list
="" for(="" i="0;" i<="" numofinvestors;="" i++)
="" {
="" investorslist[i]="temp[i];" 
="" insertionsort(investorslist,="" numofinvestors);
="" investorslist[numofinvestors];="" numofinvestors++;
}="" <\pre="">

GeneralRe: this is the right code Pin
alex.barylski16-Feb-02 13:31
alex.barylski16-Feb-02 13:31 
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 

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.