Click here to Skip to main content
15,908,111 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: DWM - desktop windows manager Pin
Richard Andrew x6421-Oct-08 5:43
professionalRichard Andrew x6421-Oct-08 5:43 
GeneralRe: DWM - desktop windows manager Pin
Sarriss21-Oct-08 5:52
Sarriss21-Oct-08 5:52 
GeneralRe: DWM - desktop windows manager Pin
Richard Andrew x6421-Oct-08 6:08
professionalRichard Andrew x6421-Oct-08 6:08 
GeneralRe: DWM - desktop windows manager Pin
Sarriss21-Oct-08 7:29
Sarriss21-Oct-08 7:29 
QuestionNeed help in C++ classes Pin
Quecumber25621-Oct-08 4:59
Quecumber25621-Oct-08 4:59 
AnswerRe: Need help in C++ classes Pin
Rajesh R Subramanian21-Oct-08 5:22
professionalRajesh R Subramanian21-Oct-08 5:22 
GeneralRe: Need help in C++ classes Pin
Quecumber25621-Oct-08 6:02
Quecumber25621-Oct-08 6:02 
QuestionRe: Need help in C++ classes Pin
CPallini21-Oct-08 6:45
mveCPallini21-Oct-08 6:45 
Something similar to:
#include <iostream>
using namespace std;

class Planet
{
private:
  double _dFactor;

public:
  Planet(double dFactor = 1.0) : _dFactor(dFactor) {} 

  double localWeight(double dWeightOnEarth)
  {
    return dWeightOnEarth * _dFactor;
  }
};
void main()
{
  Planet planetEarth, planetMercury(.38);
  double dYourWeight = 235.6;

  cout << "If your weight on Earth is " << planetEarth.localWeight(dYourWeight) << endl;
  cout << "then weight on Mercury is " << planetMercury.localWeight(dYourWeight) << endl;
}


?
Smile | :)

If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler.
-- Alfonso the Wise, 13th Century King of Castile.

This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong.
-- Iain Clarke

[My articles]

AnswerRe: Need help in C++ classes Pin
Quecumber25622-Oct-08 3:42
Quecumber25622-Oct-08 3:42 
GeneralRe: Need help in C++ classes Pin
CPallini22-Oct-08 3:44
mveCPallini22-Oct-08 3:44 
GeneralRe: Need help in C++ classes Pin
Quecumber25622-Oct-08 5:25
Quecumber25622-Oct-08 5:25 
GeneralRe: Need help in C++ classes Pin
CPallini22-Oct-08 8:52
mveCPallini22-Oct-08 8:52 
AnswerRe: Need help in C++ classes Pin
Iain Clarke, Warrior Programmer21-Oct-08 6:18
Iain Clarke, Warrior Programmer21-Oct-08 6:18 
GeneralRe: Need help in C++ classes Pin
Quecumber25621-Oct-08 6:40
Quecumber25621-Oct-08 6:40 
QuestionGetting OS theme Pin
divilin thiyagaraj21-Oct-08 4:25
divilin thiyagaraj21-Oct-08 4:25 
AnswerRe: Getting OS theme Pin
David Crow21-Oct-08 4:51
David Crow21-Oct-08 4:51 
GeneralRe: Getting OS theme Pin
divilin thiyagaraj21-Oct-08 21:08
divilin thiyagaraj21-Oct-08 21:08 
GeneralRe: Getting OS theme Pin
Rajesh R Subramanian21-Oct-08 21:15
professionalRajesh R Subramanian21-Oct-08 21:15 
QuestionRe: Getting OS theme Pin
David Crow22-Oct-08 3:13
David Crow22-Oct-08 3:13 
AnswerRe: Getting OS theme Pin
Rajesh R Subramanian21-Oct-08 4:59
professionalRajesh R Subramanian21-Oct-08 4:59 
Questionhow to get the system IP address in mfc Pin
mathy21-Oct-08 3:30
mathy21-Oct-08 3:30 
AnswerRe: how to get the system IP address in mfc Pin
Iain Clarke, Warrior Programmer21-Oct-08 3:47
Iain Clarke, Warrior Programmer21-Oct-08 3:47 
QuestionRegarding string conversion Pin
H4u3221-Oct-08 3:25
H4u3221-Oct-08 3:25 
AnswerRe: Regarding string conversion Pin
Iain Clarke, Warrior Programmer21-Oct-08 3:45
Iain Clarke, Warrior Programmer21-Oct-08 3:45 
GeneralRe: Regarding string conversion Pin
H4u3221-Oct-08 3:52
H4u3221-Oct-08 3:52 

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.