Click here to Skip to main content
15,907,905 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Why should I Upgrade from VC++ 6? Pin
Brian Shifrin15-Apr-03 1:26
Brian Shifrin15-Apr-03 1:26 
GeneralRe: Why should I Upgrade from VC++ 6? Pin
Joan M15-Apr-03 3:52
professionalJoan M15-Apr-03 3:52 
GeneralRe: Why should I Upgrade from VC++ 6? Pin
Big Art15-Apr-03 6:36
Big Art15-Apr-03 6:36 
GeneralEmbedded Dialog in another Dialog Pin
Cedric Moonen14-Apr-03 21:14
Cedric Moonen14-Apr-03 21:14 
GeneralRe: Embedded Dialog in another Dialog Pin
peterchen14-Apr-03 21:49
peterchen14-Apr-03 21:49 
GeneralRe: Embedded Dialog in another Dialog Pin
Cedric Moonen14-Apr-03 22:03
Cedric Moonen14-Apr-03 22:03 
Generalread write MatLab files Pin
peterchen14-Apr-03 21:11
peterchen14-Apr-03 21:11 
GeneralQuestion about using constructor to do type conversion. Pin
George214-Apr-03 21:02
George214-Apr-03 21:02 
Hi, everyone!


I have a sample about using constructor to do type conversion.
In my sample, I change an int to type "A". I just want to learn
more deeply into this topic -- using constructor to do type
conversion. Are there some online materials that I can make a
reference?

BTW: Is the topic in Bjarne Stroustrup's "The C++ Programming language
special edition"? I can not find that topic in this book.


Here is my example:

--------
#include <iostream.h>

class A {

private:
int a;

public:
A (int a)
{
this->a = a;
}

void output()
{
cout << "a is: " << this->a << endl;
}
};

void functionA (A a)
{
a.output();
}

int main()
{
functionA (10);
return 1;
}
--------


Thanks in advance,
George
GeneralRe: Question about using constructor to do type conversion. Pin
Joaquín M López Muñoz14-Apr-03 23:38
Joaquín M López Muñoz14-Apr-03 23:38 
GeneralRe: Question about using constructor to do type conversion. Pin
George215-Apr-03 0:05
George215-Apr-03 0:05 
GeneralWin98SE, DAO; wrong result with LIKE criteria Pin
npe14-Apr-03 20:28
npe14-Apr-03 20:28 
GeneralRe: Win98SE, DAO; wrong result with LIKE criteria Pin
Rage14-Apr-03 21:02
professionalRage14-Apr-03 21:02 
Generalloading page from memory... Pin
Smoker14-Apr-03 19:01
Smoker14-Apr-03 19:01 
GeneralRe: loading page from memory... Pin
Smoker24-Apr-03 12:13
Smoker24-Apr-03 12:13 
Generalstress test, Block RAM Pin
anju14-Apr-03 18:49
anju14-Apr-03 18:49 
GeneralRe: stress test, Block RAM Pin
Ravi Bhavnani14-Apr-03 20:46
professionalRavi Bhavnani14-Apr-03 20:46 
GeneralLocale Pin
vcseeker14-Apr-03 18:33
vcseeker14-Apr-03 18:33 
GeneralRe: Locale Pin
David Crow15-Apr-03 4:48
David Crow15-Apr-03 4:48 
GeneralRe: Locale Pin
vcseeker15-Apr-03 17:30
vcseeker15-Apr-03 17:30 
GeneralIn over my head - Rookie needs a clue Pin
CantFindMind14-Apr-03 15:20
CantFindMind14-Apr-03 15:20 
GeneralRe: In over my head - Rookie needs a clue Pin
Ravi Bhavnani14-Apr-03 18:06
professionalRavi Bhavnani14-Apr-03 18:06 
QuestionRLE24??? Pin
alex.barylski14-Apr-03 14:34
alex.barylski14-Apr-03 14:34 
AnswerRe: RLE24??? Pin
Joe Woodbury14-Apr-03 15:23
professionalJoe Woodbury14-Apr-03 15:23 
AnswerRe: RLE24??? Pin
Chris Losinger14-Apr-03 15:27
professionalChris Losinger14-Apr-03 15:27 
GeneralHELP!!! can not read memory... threads Pin
(Steven Hicks)n+114-Apr-03 13:00
(Steven Hicks)n+114-Apr-03 13:00 

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.