Click here to Skip to main content
15,900,815 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: extracting the decimal places ..... ????? Pin
David Crow5-Jul-07 2:59
David Crow5-Jul-07 2:59 
AnswerRe: extracting the decimal places ..... ????? Pin
Mark Salsbery5-Jul-07 8:48
Mark Salsbery5-Jul-07 8:48 
GeneralRe: extracting the decimal places ..... ????? Pin
G Haranadh9-Jul-07 21:23
G Haranadh9-Jul-07 21:23 
QuestionAccessing private members of a base Class Pin
ForNow4-Jul-07 12:00
ForNow4-Jul-07 12:00 
AnswerRe: Accessing private members of a base Class Pin
Christian Graus4-Jul-07 12:10
protectorChristian Graus4-Jul-07 12:10 
GeneralRe: Accessing private members of a base Class Pin
ForNow4-Jul-07 12:16
ForNow4-Jul-07 12:16 
AnswerRe: Accessing private members of a base Class Pin
Rajkumar R4-Jul-07 18:32
Rajkumar R4-Jul-07 18:32 
GeneralRe: Accessing private members of a base Class [modified] Pin
G Haranadh4-Jul-07 21:22
G Haranadh4-Jul-07 21:22 
Rajkumar_R wrote:
private members can't be accessed even at initialization.


Rajkumar_R wrote:
The constructor you are refering may be public or protected.


class myCls<br />
{<br />
private:<br />
    int x,y;<br />
public:<br />
    myCls()<br />
    {<br />
        x = 5100; //Initilization of private data.<br />
        y = 5660; //Initilization of private data. <br />
        ///???AM I WRONG DOING HERE IN PRIVATE SECTION???<br />
    }<br />
    void disp()<br />
    {<br />
        printf("x = %d;y = %d",x,y);<br />
    }<br />
};<br />
void main()<br />
{<br />
    class myCls obj;<br />
    obj.disp();<br />
}



-- modified at 10:46 Thursday 5th July, 2007


Nice talking to you. Blush | :O
If you judge people, you have no time to love them. -- Mother Teresa

GeneralRe: Accessing private members of a base Class Pin
David Crow5-Jul-07 3:01
David Crow5-Jul-07 3:01 
AnswerRe: Accessing private members of a base Class Pin
Rajkumar R8-Jul-07 23:19
Rajkumar R8-Jul-07 23:19 
GeneralRe: Accessing private members of a base Class Pin
ForNow5-Jul-07 6:42
ForNow5-Jul-07 6:42 
AnswerRe: Accessing private members of a base Class Pin
Joe Woodbury5-Jul-07 10:14
professionalJoe Woodbury5-Jul-07 10:14 
GeneralRe: Accessing private members of a base Class Pin
ForNow5-Jul-07 11:30
ForNow5-Jul-07 11:30 
GeneralRe: Accessing private members of a base Class Pin
Joe Woodbury5-Jul-07 12:00
professionalJoe Woodbury5-Jul-07 12:00 
GeneralRe: Accessing private members of a base Class Pin
ForNow5-Jul-07 13:22
ForNow5-Jul-07 13:22 
GeneralRe: Accessing private members of a base Class Pin
Joe Woodbury5-Jul-07 13:31
professionalJoe Woodbury5-Jul-07 13:31 
GeneralRe: Accessing private members of a base Class Pin
ForNow5-Jul-07 16:14
ForNow5-Jul-07 16:14 
GeneralRe: Accessing private members of a base Class Pin
Joe Woodbury5-Jul-07 16:19
professionalJoe Woodbury5-Jul-07 16:19 
GeneralRe: Accessing private members of a base Class Pin
ForNow5-Jul-07 16:25
ForNow5-Jul-07 16:25 
QuestionRead lines in a file Pin
Perspx4-Jul-07 11:06
Perspx4-Jul-07 11:06 
AnswerRe: Read lines in a file [modified] Pin
Cyrilix4-Jul-07 11:24
Cyrilix4-Jul-07 11:24 
AnswerRe: Read lines in a file Pin
Akt_4_U4-Jul-07 18:44
Akt_4_U4-Jul-07 18:44 
AnswerRe: Read lines in a file Pin
Hamid_RT4-Jul-07 19:35
Hamid_RT4-Jul-07 19:35 
AnswerRe: Read lines in a file Pin
Stephen Hewitt5-Jul-07 13:04
Stephen Hewitt5-Jul-07 13:04 
GeneralRe: Read lines in a file Pin
Perspx5-Jul-07 18:37
Perspx5-Jul-07 18:37 

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.