Click here to Skip to main content
14,765,383 members
Home » Discussions » C / C++ / MFC
   

C / C++ / MFC

 
QuestionRe: Dos subclassing Pin
David Crow4-Feb-10 9:27
MemberDavid Crow4-Feb-10 9:27 
AnswerRe: Dos subclassing Pin
Maximilien4-Feb-10 9:38
MemberMaximilien4-Feb-10 9:38 
AnswerRe: Dos subclassing Pin
Richard MacCutchan4-Feb-10 9:48
mveRichard MacCutchan4-Feb-10 9:48 
AnswerRe: Dos subclassing Pin
Code-o-mat4-Feb-10 9:50
MemberCode-o-mat4-Feb-10 9:50 
AnswerRe: Dos subclassing Pin
Avi Berger4-Feb-10 10:13
MemberAvi Berger4-Feb-10 10:13 
GeneralRe: Dos subclassing Pin
loyal ginger4-Feb-10 12:16
Memberloyal ginger4-Feb-10 12:16 
GeneralRe: Dos subclassing Pin
Avi Berger4-Feb-10 13:42
MemberAvi Berger4-Feb-10 13:42 
QuestionDeclaring Variables Pin
gregarion4-Feb-10 8:48
Membergregarion4-Feb-10 8:48 
Hey guys im facing a problem in declaring variables. i have a few classes like the one below...


[CODE]#ifndef _FINANCE_H
#define	_FINANCE_H

#include <string>
#include <iostream>
#include <fstream>
#include <stdlib.h>

using namespace std ;


class  readStraitsTimesIndex
{
    public:
         void StraitsTimesIndex(fstream&) ;
    private:
};

class readDow
{
    public:
        void Dow(fstream&) ;
    private:
 };
[/CODE]


what i am trying to do is to use a value which is being the output of one of the class class and to be displayed into the other class. I tried using an object member like the one below ,

[CODE]class  readStraitsTimesIndex
{
    public:
         void StraitsTimesIndex(fstream&) ;
String value ;
    private:

};[/CODE]


and then assigned the output of that class to the variable(value) , but it will only work within the class. how do i go about saving a certain variable from the output of a certain class and using it for the other variables.
AnswerRe: Declaring Variables Pin
Maximilien4-Feb-10 9:19
MemberMaximilien4-Feb-10 9:19 
GeneralRe: Declaring Variables Pin
gregarion4-Feb-10 9:34
Membergregarion4-Feb-10 9:34 
GeneralRe: Declaring Variables Pin
Richard MacCutchan4-Feb-10 9:47
mveRichard MacCutchan4-Feb-10 9:47 
GeneralRe: Declaring Variables Pin
gregarion4-Feb-10 9:53
Membergregarion4-Feb-10 9:53 
GeneralRe: Declaring Variables Pin
Richard MacCutchan4-Feb-10 12:38
mveRichard MacCutchan4-Feb-10 12:38 
GeneralRe: Declaring Variables Pin
Rozis4-Feb-10 13:42
MemberRozis4-Feb-10 13:42 
GeneralRe: Declaring Variables Pin
Richard MacCutchan4-Feb-10 23:04
mveRichard MacCutchan4-Feb-10 23:04 
GeneralRe: Declaring Variables Pin
Maximilien4-Feb-10 9:55
MemberMaximilien4-Feb-10 9:55 
GeneralRe: Declaring Variables Pin
gregarion4-Feb-10 9:59
Membergregarion4-Feb-10 9:59 
AnswerRe: Code needed for Parsing PE for Exports Pin
Tim Craig4-Feb-10 9:32
MemberTim Craig4-Feb-10 9:32 
AnswerRe: Code needed for Parsing PE for Exports Pin
Richard MacCutchan4-Feb-10 9:45
mveRichard MacCutchan4-Feb-10 9:45 
QuestionC++ return value from function Pin
uusheikh4-Feb-10 8:11
Memberuusheikh4-Feb-10 8:11 
AnswerRe: C++ return value from function Pin
Nemanja Trifunovic4-Feb-10 8:27
MemberNemanja Trifunovic4-Feb-10 8:27 
GeneralRe: C++ return value from function Pin
uusheikh4-Feb-10 8:35
Memberuusheikh4-Feb-10 8:35 
GeneralRe: C++ return value from function Pin
Maximilien4-Feb-10 8:38
MemberMaximilien4-Feb-10 8:38 
GeneralRe: C++ return value from function Pin
Nemanja Trifunovic4-Feb-10 8:43
MemberNemanja Trifunovic4-Feb-10 8:43 
GeneralRe: C++ return value from function Pin
uusheikh4-Feb-10 9:18
Memberuusheikh4-Feb-10 9:18 

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.