Click here to Skip to main content
14,691,039 members
Home » Discussions » ATL / WTL / STL
   

ATL / WTL / STL

 
AnswerRe: STL std::string help needed Pin
Daniel Pfeffer9-Feb-17 7:17
professionalDaniel Pfeffer9-Feb-17 7:17 
GeneralRe: STL std::string help needed Pin
VISWESWARAN19989-Feb-17 8:27
professionalVISWESWARAN19989-Feb-17 8:27 
GeneralRe: STL std::string help needed Pin
Daniel Pfeffer11-Feb-17 8:36
professionalDaniel Pfeffer11-Feb-17 8:36 
QuestionRe: STL std::string help needed Pin
VISWESWARAN199812-Feb-17 1:18
professionalVISWESWARAN199812-Feb-17 1:18 
AnswerRe: STL std::string help needed Pin
Daniel Pfeffer12-Feb-17 1:47
professionalDaniel Pfeffer12-Feb-17 1:47 
PraiseRe: STL std::string help needed Pin
VISWESWARAN199812-Feb-17 5:25
professionalVISWESWARAN199812-Feb-17 5:25 
PraiseRe: STL std::string help needed Pin
VISWESWARAN199810-Feb-17 0:54
professionalVISWESWARAN199810-Feb-17 0:54 
QuestionMultiple Inheritance question Pin
samzcs25-Dec-16 18:31
Membersamzcs25-Dec-16 18:31 
class CBase {
    string id;
public:
    void show() {
        cout <<  id << endl;
    }
};

class CDerive1 : public CBase { };
class CDerive2 : public CBase { };
class CSon : public CDerive2, public CDerive1 { };

int main ( )
{
    CSon s;
    cout <<  &s << endl;
    cout <<  "---------" << endl;

    CDerive1 *pd1 = &s;
    cout <<  pd1 << " &S: " << &s <<  endl;
    CDerive2 *pd2 = &s;
    cout <<  pd2 << " &S: " << &s <<  endl;
    cout <<  "---------" << endl;


The output of this code is :
0035FB20
---------
0035FB3C
0035FB20
--------

don't know why cout << pd1, and cout << pd2 are different, they are assigned the same value &s.
GeneralRe: Multiple Inheritance question Pin
Richard MacCutchan25-Dec-16 21:36
mveRichard MacCutchan25-Dec-16 21:36 
GeneralRe: Multiple Inheritance question Pin
samzcs26-Dec-16 8:51
Membersamzcs26-Dec-16 8:51 
GeneralRe: Multiple Inheritance question Pin
Richard MacCutchan26-Dec-16 22:29
mveRichard MacCutchan26-Dec-16 22:29 
AnswerRe: Multiple Inheritance question Pin
Vi228-Dec-16 19:35
MemberVi228-Dec-16 19:35 
GeneralRe: Multiple Inheritance question Pin
samzcs28-Dec-16 19:40
Membersamzcs28-Dec-16 19:40 
QuestionCalling a MFC dialog from win32 Pin
rdeekonda29-Jul-16 6:46
Memberrdeekonda29-Jul-16 6:46 
AnswerRe: Calling a MFC dialog from win32 Pin
Afzaal Ahmad Zeeshan29-Jul-16 7:01
mvaAfzaal Ahmad Zeeshan29-Jul-16 7:01 
GeneralRe: Calling a MFC dialog from win32 Pin
rdeekonda29-Jul-16 8:04
Memberrdeekonda29-Jul-16 8:04 
AnswerRe: Calling a MFC dialog from win32 Pin
Richard MacCutchan29-Jul-16 7:46
mveRichard MacCutchan29-Jul-16 7:46 
GeneralRe: Calling a MFC dialog from win32 Pin
rdeekonda29-Jul-16 8:08
Memberrdeekonda29-Jul-16 8:08 
GeneralRe: Calling a MFC dialog from win32 Pin
Richard MacCutchan29-Jul-16 23:19
mveRichard MacCutchan29-Jul-16 23:19 
QuestionHow to open file with single quote in its name? Pin
liquid_23-Jul-16 21:09
Memberliquid_23-Jul-16 21:09 
AnswerRe: How to open file with single quote in its name? Pin
Richard MacCutchan23-Jul-16 21:52
mveRichard MacCutchan23-Jul-16 21:52 
GeneralRe: How to open file with single quote in its name? Pin
liquid_24-Jul-16 0:40
Memberliquid_24-Jul-16 0:40 
GeneralRe: How to open file with single quote in its name? Pin
Jochen Arndt24-Jul-16 1:20
professionalJochen Arndt24-Jul-16 1:20 
GeneralRe: How to open file with single quote in its name? Pin
liquid_24-Jul-16 1:21
Memberliquid_24-Jul-16 1:21 
GeneralRe: How to open file with single quote in its name? Pin
Jochen Arndt24-Jul-16 1:34
professionalJochen Arndt24-Jul-16 1:34 

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.