Click here to Skip to main content
15,890,579 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Looking for API to get the registered .txt editor Pin
ThatsAlok13-Dec-05 22:16
ThatsAlok13-Dec-05 22:16 
GeneralRe: Looking for API to get the registered .txt editor Pin
Ian Bowler14-Dec-05 6:56
Ian Bowler14-Dec-05 6:56 
QuestionBuilding and testing a deskband Pin
PJ Arends13-Dec-05 8:26
professionalPJ Arends13-Dec-05 8:26 
AnswerRe: Building and testing a deskband Pin
TheGreatAndPowerfulOz13-Dec-05 9:07
TheGreatAndPowerfulOz13-Dec-05 9:07 
GeneralRe: Building and testing a deskband Pin
PJ Arends13-Dec-05 12:48
professionalPJ Arends13-Dec-05 12:48 
GeneralRe: Building and testing a deskband Pin
TheGreatAndPowerfulOz13-Dec-05 13:10
TheGreatAndPowerfulOz13-Dec-05 13:10 
AnswerRe: Building and testing a deskband Pin
Aamir Butt13-Dec-05 21:07
Aamir Butt13-Dec-05 21:07 
QuestionAddress of a Class object Pin
ddmcr13-Dec-05 8:17
ddmcr13-Dec-05 8:17 
Hello guys,

I have encountered next situation and it would be nice if someone could clarify this :

class Foo
{
  public : 
	int  number1;
}Object;

int main()
{
  cout<<&Object<<endl;           // Here output is 004575E0
  cout<<&(Object.number1)<<endl; // Here output is also 004575E0
}


Does this have any eplanation Confused | :confused:
Why is the address of a class object same as its member variables address;





"Success is the ability to go from one failure to another with no loss of enthusiasm." - W.Churchill


AnswerRe: Address of a Class object Pin
Chris Losinger13-Dec-05 9:08
professionalChris Losinger13-Dec-05 9:08 
AnswerRe: Address of a Class object Pin
Dominik Reichl13-Dec-05 9:10
Dominik Reichl13-Dec-05 9:10 
AnswerRe: Address of a Class object Pin
TheGreatAndPowerfulOz13-Dec-05 9:11
TheGreatAndPowerfulOz13-Dec-05 9:11 
GeneralRe: Address of a Class object Pin
#realJSOP13-Dec-05 10:10
mve#realJSOP13-Dec-05 10:10 
GeneralRe: Address of a Class object Pin
TheGreatAndPowerfulOz13-Dec-05 10:56
TheGreatAndPowerfulOz13-Dec-05 10:56 
QuestionC language string to float conversion ... Pin
Maximilien13-Dec-05 7:38
Maximilien13-Dec-05 7:38 
AnswerRe: C language float to string conversion ... Pin
Jim Crafton13-Dec-05 7:49
Jim Crafton13-Dec-05 7:49 
AnswerRe: C language string to float conversion ... Pin
PJ Arends13-Dec-05 8:38
professionalPJ Arends13-Dec-05 8:38 
GeneralRe: C language string to float conversion ... Pin
Maximilien13-Dec-05 9:30
Maximilien13-Dec-05 9:30 
QuestionHow to force the initial directory to be 'My Computer' Pin
Cyrus Dang13-Dec-05 7:10
Cyrus Dang13-Dec-05 7:10 
AnswerRe: How to force the initial directory to be 'My Computer' Pin
TheGreatAndPowerfulOz13-Dec-05 9:16
TheGreatAndPowerfulOz13-Dec-05 9:16 
GeneralRe: How to force the initial directory to be 'My Computer' Pin
Cyrus Dang13-Dec-05 9:33
Cyrus Dang13-Dec-05 9:33 
GeneralRe: How to force the initial directory to be 'My Computer' Pin
TheGreatAndPowerfulOz13-Dec-05 9:50
TheGreatAndPowerfulOz13-Dec-05 9:50 
GeneralRe: How to force the initial directory to be 'My Computer' Pin
Cyrus Dang13-Dec-05 10:25
Cyrus Dang13-Dec-05 10:25 
GeneralRe: How to force the initial directory to be 'My Computer' Pin
TheGreatAndPowerfulOz13-Dec-05 13:16
TheGreatAndPowerfulOz13-Dec-05 13:16 
GeneralRe: How to force the initial directory to be 'My Computer' Pin
Cyrus Dang13-Dec-05 14:06
Cyrus Dang13-Dec-05 14:06 
GeneralRe: How to force the initial directory to be 'My Computer' Pin
TheGreatAndPowerfulOz13-Dec-05 17:12
TheGreatAndPowerfulOz13-Dec-05 17:12 

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.