Click here to Skip to main content
15,898,615 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: again question Pin
messages20-Apr-06 4:44
messages20-Apr-06 4:44 
GeneralRe: again question Pin
David Crow20-Apr-06 5:57
David Crow20-Apr-06 5:57 
GeneralRe: again question Pin
messages20-Apr-06 19:33
messages20-Apr-06 19:33 
AnswerRe: again question Pin
Mila02520-Apr-06 4:45
Mila02520-Apr-06 4:45 
GeneralRe: again question Pin
messages20-Apr-06 5:11
messages20-Apr-06 5:11 
Questionoutput stream problem Pin
Aqueel20-Apr-06 3:41
Aqueel20-Apr-06 3:41 
AnswerRe: output stream problem Pin
toxcct20-Apr-06 3:54
toxcct20-Apr-06 3:54 
GeneralRe: output stream problem Pin
Aqueel20-Apr-06 3:58
Aqueel20-Apr-06 3:58 
Thank you for your responce. Here is the code

cout<<"DAY\tBreak up\tBuying Price\tSelling Price\tGain/Loss"<<endl;<br />
	for(;curr->next!=&head;curr=curr->next)<br />
	{<br />
		for(;curr->next->array[i].day_number!=-1;i++)<br />
		{<br />
			cout<<curr->next->array[i].day_number<<"\t"<br />
				<<curr->next->array[i].break_up<<"\t"<br />
				<<curr->next->array[i].buying_price<<"\t"<br />
				<<curr->next->array[i].selling_price<<"\t"<br />
				<<curr->next->array[i].capital_gain<<endl;<br />
		}<br />
	}

I tried this code after omitting the first cout line. but in inner for loop before printing the values again it changes the array contents.
How it is possible?

We Believe in Excellence
www.aqueelmirza.cjb.net
AnswerRe: output stream problem Pin
David Crow20-Apr-06 4:29
David Crow20-Apr-06 4:29 
GeneralRe: output stream problem Pin
Aqueel20-Apr-06 4:42
Aqueel20-Apr-06 4:42 
GeneralRe: output stream problem Pin
Aqueel20-Apr-06 4:47
Aqueel20-Apr-06 4:47 
GeneralRe: output stream problem Pin
jayart20-Apr-06 5:14
jayart20-Apr-06 5:14 
QuestionPersistent Toolbars Pin
Sarvan AL20-Apr-06 1:41
Sarvan AL20-Apr-06 1:41 
QuestionHow do i dynamically acces method export in CLASS Pin
Killer320-Apr-06 0:54
Killer320-Apr-06 0:54 
AnswerRe: How do i dynamically acces method export in CLASS Pin
Naveen20-Apr-06 1:08
Naveen20-Apr-06 1:08 
GeneralRe: How do i dynamically acces method export in CLASS Pin
Killer320-Apr-06 1:28
Killer320-Apr-06 1:28 
GeneralRe: How do i dynamically acces method export in CLASS Pin
Naveen20-Apr-06 2:31
Naveen20-Apr-06 2:31 
GeneralRe: How do i dynamically acces method export in CLASS Pin
Killer320-Apr-06 4:09
Killer320-Apr-06 4:09 
QuestionCapturing Desktop Events Pin
atimpoo19-Apr-06 23:56
atimpoo19-Apr-06 23:56 
AnswerRe: Capturing Desktop Events Pin
Naveen20-Apr-06 0:55
Naveen20-Apr-06 0:55 
QuestionHow to Change the Control Focus on MSFlex Grid Control Pin
kiran janaswamy19-Apr-06 23:18
kiran janaswamy19-Apr-06 23:18 
QuestionPlgBlt question Pin
YaronNir19-Apr-06 23:11
YaronNir19-Apr-06 23:11 
AnswerRe: PlgBlt question Pin
Stephen Hewitt20-Apr-06 0:54
Stephen Hewitt20-Apr-06 0:54 
GeneralRe: PlgBlt question Pin
YaronNir20-Apr-06 1:15
YaronNir20-Apr-06 1:15 
GeneralRe: PlgBlt question Pin
jayart20-Apr-06 4:51
jayart20-Apr-06 4:51 

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.