Click here to Skip to main content
14,496,323 members

C / C++ / MFC

 
QuestionRe: How to load 2 tool bars in Main Frame (MFC) Pin
Maximilien26-Jan-10 5:05
MemberMaximilien26-Jan-10 5:05 
AnswerRe: How to load 2 tool bars in Main Frame (MFC) Pin
Software200726-Jan-10 5:15
MemberSoftware200726-Jan-10 5:15 
AnswerRe: How to load 2 tool bars in Main Frame (MFC) Pin
Richard MacCutchan26-Jan-10 5:26
mveRichard MacCutchan26-Jan-10 5:26 
QuestionPrinting values in editbox using VC++ Pin
SNI26-Jan-10 4:20
MemberSNI26-Jan-10 4:20 
AnswerRe: Printing values in editbox using VC++ Pin
Richard MacCutchan26-Jan-10 5:28
mveRichard MacCutchan26-Jan-10 5:28 
GeneralRe: Printing values in editbox using VC++ Pin
SNI26-Jan-10 18:12
MemberSNI26-Jan-10 18:12 
GeneralRe: Printing values in editbox using VC++ Pin
Richard MacCutchan26-Jan-10 22:25
mveRichard MacCutchan26-Jan-10 22:25 
Questioncreating methods/functions in a seperate file Pin
benjamin yap26-Jan-10 4:01
Memberbenjamin yap26-Jan-10 4:01 
Hi all, i am very very new to c++ hope u guys can pardon me.


I have a file called "newclass.h" which declares a few methods.

//newclass.h, the specification file for the class NewClass

#ifndef _NEWCLASS_H
#define	_NEWCLASS_H
#include <string>

using namespace std;

class NewClass  {
public:

 string symbol; //variable to store the symbol (e.g.: Nasdaq)
 double lastTrade; //variable to store the last traded value
 double changeValue(); //variable to store the change in value
 double changePercentage(); //variable to store the change in percentage

   //function to get the respective values
   //the word const at the end of the member functions specify that these functions cannot modify the member variables of a variable
   void getDow(string symbol, double, double, double) const;
   void getNasdaq(string symbol, double, double, double) const;
   void getSP_500(string symbol, double, double, double) const;
   void getFTSE_100(string symbol, double, double, double) const;
   void getDAX(string symbol, double, double, double) const;
   void getNikkei_225(string symbol, double, double, double) const;
   void getHang_Seng(string symbol, double, double, double) const;
   void getStraits_Times_Index(string symbol, double, double, double) const;
};
#endif


and the other file i have is "newclass.cpp"

//newclass.cpp, the implementation file
#include <iostream>
#include "newclass.h"

using namespace std;


how do i continue writing the main function of the method in newclass.cpp


thanks
AnswerRe: creating methods/functions in a seperate file Pin
Cedric Moonen26-Jan-10 4:08
MemberCedric Moonen26-Jan-10 4:08 
AnswerRe: creating methods/functions in a seperate file Pin
Maximilien26-Jan-10 4:28
MemberMaximilien26-Jan-10 4:28 
AnswerRe: creating methods/functions in a seperate file Pin
Nemanja Trifunovic26-Jan-10 6:41
MemberNemanja Trifunovic26-Jan-10 6:41 
Questionhow to layout stack values in VC++6.0 by myself but not compiler? thank u Pin
kaviniswell26-Jan-10 2:33
Memberkaviniswell26-Jan-10 2:33 
QuestionRe: how to layout stack values in VC++6.0 by myself but not compiler? thank u Pin
CPallini26-Jan-10 3:32
mveCPallini26-Jan-10 3:32 
AnswerRe: how to layout stack values in VC++6.0 by myself but not compiler? thank u Pin
kaviniswell26-Jan-10 4:19
Memberkaviniswell26-Jan-10 4:19 
AnswerRe: how to layout stack values in VC++6.0 by myself but not compiler? thank u Pin
Maximilien26-Jan-10 4:36
MemberMaximilien26-Jan-10 4:36 
GeneralRe: how to layout stack values in VC++6.0 by myself but not compiler? thank u Pin
kaviniswell27-Jan-10 2:06
Memberkaviniswell27-Jan-10 2:06 
AnswerRe: how to layout stack values in VC++6.0 by myself but not compiler? thank u Pin
BonshatS26-Jan-10 4:52
MemberBonshatS26-Jan-10 4:52 
GeneralRe: how to layout stack values in VC++6.0 by myself but not compiler? thank u Pin
kaviniswell27-Jan-10 2:33
Memberkaviniswell27-Jan-10 2:33 
AnswerRe: how to layout stack values in VC++6.0 by myself but not compiler? thank u Pin
Emilio Garavaglia26-Jan-10 5:28
MemberEmilio Garavaglia26-Jan-10 5:28 
GeneralRe: how to layout stack values in VC++6.0 by myself but not compiler? thank u Pin
kaviniswell27-Jan-10 2:14
Memberkaviniswell27-Jan-10 2:14 
QuestionDirectShow IMediaSeeking Pin
rajas25-Jan-10 22:20
Memberrajas25-Jan-10 22:20 
AnswerRe: DirectShow IMediaSeeking Pin
CPallini25-Jan-10 23:01
mveCPallini25-Jan-10 23:01 
QuestionCreating MFC based window inside Win32 Pin
sthalasayanam25-Jan-10 18:11
Membersthalasayanam25-Jan-10 18:11 
AnswerRe: Creating MFC based window inside Win32 Pin
CPallini25-Jan-10 21:25
mveCPallini25-Jan-10 21:25 
GeneralRe: Creating MFC based window inside Win32 Pin
Dragondima26-Jan-10 3:44
MemberDragondima26-Jan-10 3:44 

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.