Click here to Skip to main content
15,915,611 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Compiled .dll in C++ for use in VB Pin
Rick York13-Feb-02 17:24
mveRick York13-Feb-02 17:24 
GeneralRe: Compiled .dll in C++ for use in VB Pin
Paul M Watt13-Feb-02 17:48
mentorPaul M Watt13-Feb-02 17:48 
GeneralRe: Compiled .dll in C++ for use in VB Pin
David Wengier13-Feb-02 18:37
David Wengier13-Feb-02 18:37 
Questionhow do we fix this? Pin
13-Feb-02 15:43
suss13-Feb-02 15:43 
Answerwe can only use string.h and iostream.h Pin
13-Feb-02 15:46
suss13-Feb-02 15:46 
GeneralRe: we can only use string.h and iostream.h Pin
13-Feb-02 16:04
suss13-Feb-02 16:04 
AnswerRe: how do we fix this? Pin
Derek Waters13-Feb-02 17:20
Derek Waters13-Feb-02 17:20 
AnswerRe: how do we fix this? Pin
Kashif Manzoor13-Feb-02 22:19
Kashif Manzoor13-Feb-02 22:19 
Your teacher wants you to read two topics:

(1) operator overloading
(2) polymorphism

Although I personally can give you a complete answer to your question (as I have given similar question to my students) but I believe that if you simply read the above mentioned topics you would be able to solve the problem yourself.

Basically the "Stock" object has an implementation of "<<" operator that outputs the conctenated string containing the attributes of Stock object

The "Stocks" object will have its own "<<" which uses the "<<" of Stock to produce a consolidated string that shows the details of ALL the stocks.

You have already noticed that the return from with in the loop will give you an error. Since you for () condition is not properly shown (due to HTML format) i can't really see why u are returning from with in the loop - because this way your loop will only run once (but i guess u already know this).


-cheers,
kashif manzoor



peace to all
GeneralAgain a callback question... m(__)m Pin
Mr.Freeze13-Feb-02 15:26
Mr.Freeze13-Feb-02 15:26 
GeneralRe: Again a callback question... m(__)m Pin
David Wengier13-Feb-02 15:33
David Wengier13-Feb-02 15:33 
GeneralRe: Again a callback question... m(__)m Pin
Mr.Freeze13-Feb-02 15:54
Mr.Freeze13-Feb-02 15:54 
GeneralRe: Again a callback question... m(__)m Pin
Lim Bio Liong13-Feb-02 16:28
Lim Bio Liong13-Feb-02 16:28 
GeneralRe: Again a callback question... m(__)m Pin
Mr.Freeze13-Feb-02 17:05
Mr.Freeze13-Feb-02 17:05 
GeneralRe: Again a callback question... m(__)m Pin
Lim Bio Liong13-Feb-02 18:08
Lim Bio Liong13-Feb-02 18:08 
GeneralRe: Again a callback question... m(__)m Pin
Mr.Freeze13-Feb-02 19:15
Mr.Freeze13-Feb-02 19:15 
GeneralRe: Again a callback question... m(__)m Pin
Lim Bio Liong13-Feb-02 22:58
Lim Bio Liong13-Feb-02 22:58 
GeneralRe: Again a callback question... m(__)m Pin
Mr.Freeze14-Feb-02 13:17
Mr.Freeze14-Feb-02 13:17 
GeneralRe: Again a callback question... m(__)m Pin
Lim Bio Liong14-Feb-02 20:54
Lim Bio Liong14-Feb-02 20:54 
GeneralRe: Again a callback question... m(__)m Pin
Joaquín M López Muñoz13-Feb-02 21:15
Joaquín M López Muñoz13-Feb-02 21:15 
GeneralRe: Again a callback question... m(__)m Pin
Lim Bio Liong13-Feb-02 22:46
Lim Bio Liong13-Feb-02 22:46 
GeneralRe: Again a callback question... m(__)m Pin
Joaquín M López Muñoz13-Feb-02 23:24
Joaquín M López Muñoz13-Feb-02 23:24 
GeneralRe: Again a callback question... m(__)m Pin
Lim Bio Liong13-Feb-02 23:52
Lim Bio Liong13-Feb-02 23:52 
GeneralRe: Again a callback question... m(__)m Pin
Mr.Freeze14-Feb-02 13:22
Mr.Freeze14-Feb-02 13:22 
GeneralImageList_Draw not working under XP Pin
David Wengier13-Feb-02 14:13
David Wengier13-Feb-02 14:13 
GeneralRe: ImageList_Draw not working under XP Pin
Tim Smith13-Feb-02 14:47
Tim Smith13-Feb-02 14:47 

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.