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

C / C++ / MFC

 
GeneralRe: exception Pin
Jon Hulatt13-Feb-02 23:25
Jon Hulatt13-Feb-02 23:25 
GeneralCompiled .dll in C++ for use in VB Pin
Nick Parker13-Feb-02 16:49
protectorNick Parker13-Feb-02 16:49 
GeneralRe: Compiled .dll in C++ for use in VB Pin
Derek Waters13-Feb-02 17:13
Derek Waters13-Feb-02 17:13 
GeneralRe: Compiled .dll in C++ for use in VB Pin
Nick Parker13-Feb-02 17:30
protectorNick Parker13-Feb-02 17:30 
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 
ostream& operator << (ostream& s, Stocks& stocks)
{
for(int i = 0; i <stocks.numofstocks; i++)
="" {
="" s="" <<"stock="" information:="" "<<="" (stocks.mystocks[i]).getcompanyname()<<"="" "<<stocks.mystocks[i].getstockticker()<<"="" "<<stocks.mystocks[i].getmarkettraded()<<"="" "<<stocks.mystocks[i].gettypeofmanufactr()<<"="" "<<stocks.mystocks[i].getinitialvalue()<<"="" "<<stocks.mystocks[i].getnumofoutshares()<<endl;
="" return="" s;
="" }

}

i="" really="" should="" not="" use="" any="" other="" classes="" but="" the="" <string.h=""> and <iostream.h>
in my project, so if you can tell me how to get this method to work, i know that my return statement should not be inside the body loop
but how do i fix it?

by the way this method is in a class called Stocks that holds an array of the class objects Stock. and the class Stock defines this method as well but ithout any loop.


our teacher was saying that when we try to use this method in Stocks class it will automatically call the same ostream method in class Stock
can any one tell me how is that?
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 
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 

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.