Click here to Skip to main content
15,923,789 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: how long? Pin
Braulio Dez17-Feb-02 21:43
Braulio Dez17-Feb-02 21:43 
AnswerRe: how long? Pin
Michael P Butler18-Feb-02 3:42
Michael P Butler18-Feb-02 3:42 
GeneralLPT Port Pin
17-Feb-02 14:47
suss17-Feb-02 14:47 
GeneralRe: LPT Port Pin
Tim Smith17-Feb-02 15:21
Tim Smith17-Feb-02 15:21 
Generalanother one! Pin
17-Feb-02 14:32
suss17-Feb-02 14:32 
GeneralRe: another one! Pin
Derek Waters17-Feb-02 15:11
Derek Waters17-Feb-02 15:11 
GeneralRe: another one! Pin
17-Feb-02 16:14
suss17-Feb-02 16:14 
GeneralRe: another one! Pin
Derek Waters17-Feb-02 16:21
Derek Waters17-Feb-02 16:21 
Yes, you do need a loop. That's what I meant by "for each Stock".

I can't tell you how to implement the loop because I don't know what sort of array you are using to store the Stock items. If it is a simple C array, then you can just use a loop with a counter:

// m_iStockCount is an integer containing the number of stocks in my array
// m_aStocks is the array of stocks
for (int viItem = 0; viItem < m_iStockCount; ++viItem)
{
    s << m_aStocks[viItem];
}


Also, you may want to have a closer look at Christian Graus' comment below because I have to admit to not knowing more than the very basics of ostream.

You might also want to have a good read of a good book on C++/C if the concepts of arrays is beyond your knowledge, because you're not going to get very far without it.


------------------------
Derek Waters
derek@lj-oz.com
GeneralRe: another one! Pin
17-Feb-02 21:59
suss17-Feb-02 21:59 
GeneralRe: another one! Pin
markkuk17-Feb-02 22:53
markkuk17-Feb-02 22:53 
GeneralRe: another one! Pin
Christian Graus17-Feb-02 23:07
protectorChristian Graus17-Feb-02 23:07 
GeneralRe: another one! Pin
Christian Graus17-Feb-02 15:25
protectorChristian Graus17-Feb-02 15:25 
GeneralRe: this code is driving me crazy! :(( Pin
Christian Graus17-Feb-02 13:54
protectorChristian Graus17-Feb-02 13:54 
GeneralRe: this code is driving me crazy! :(( Pin
Shog917-Feb-02 13:50
sitebuilderShog917-Feb-02 13:50 
GeneralRe: this code is driving me crazy! :(( Pin
Christian Graus17-Feb-02 13:56
protectorChristian Graus17-Feb-02 13:56 
GeneralRe: this code is driving me crazy! :(( Pin
Shog917-Feb-02 13:59
sitebuilderShog917-Feb-02 13:59 
GeneralRe: this code is driving me crazy! :(( Pin
17-Feb-02 14:26
suss17-Feb-02 14:26 
GeneralRe: this code is driving me crazy! :(( Pin
Christian Graus17-Feb-02 15:26
protectorChristian Graus17-Feb-02 15:26 
GeneralRe: this code is driving me crazy! :(( Pin
17-Feb-02 15:59
suss17-Feb-02 15:59 
QuestionHow can I programmatically click the next button on yahoo? Pin
DanYELL17-Feb-02 12:39
DanYELL17-Feb-02 12:39 
AnswerRe: How can I programmatically click the next button on yahoo? Pin
Simon Walton17-Feb-02 12:54
Simon Walton17-Feb-02 12:54 
AnswerRe: How can I programmatically click the next button on yahoo? Pin
17-Feb-02 13:00
suss17-Feb-02 13:00 
GeneralRe CTrayNotifyIcon Pin
17-Feb-02 11:56
suss17-Feb-02 11:56 
GeneralRe: Re CTrayNotifyIcon Pin
Nish Nishant17-Feb-02 13:38
sitebuilderNish Nishant17-Feb-02 13:38 
GeneralRe: Re CTrayNotifyIcon Pin
Jon Hulatt17-Feb-02 22:04
Jon Hulatt17-Feb-02 22:04 

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.