Click here to Skip to main content
15,887,135 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Overwriting in the console Pin
Cedric Moonen23-Feb-06 0:49
Cedric Moonen23-Feb-06 0:49 
QuestionPrinting directly without dialog box Pin
LapinGarou22-Feb-06 23:53
LapinGarou22-Feb-06 23:53 
AnswerRe: Printing directly without dialog box Pin
Cool Ju23-Feb-06 0:08
Cool Ju23-Feb-06 0:08 
GeneralRe: Printing directly without dialog box Pin
LapinGarou24-Feb-06 22:49
LapinGarou24-Feb-06 22:49 
QuestionHow to get mac address from specical IP? Pin
Rulala22-Feb-06 23:14
Rulala22-Feb-06 23:14 
QuestionPC/SC in C++ Builder Pin
kittymew22-Feb-06 23:07
kittymew22-Feb-06 23:07 
Questionoperator () overloading. Pin
9ine22-Feb-06 23:00
9ine22-Feb-06 23:00 
AnswerRe: operator () overloading. Pin
Russell'22-Feb-06 23:22
Russell'22-Feb-06 23:22 
9ine wrote:
a = vec(0);


As you can see the compiler can't undertand what return type that you want to use, it make a cast (if it is possible) between the return value and the type of a.

vec(0) don't helps!
but (here cames a solution)
vec(0) can give more informations:
is it possible for you to have different child classes? one for each data type? and then call the appropriate operator?

Have a nice code day Wink | ;)


GeneralRe: operator () overloading. Pin
9ine23-Feb-06 1:55
9ine23-Feb-06 1:55 
AnswerRe: operator () overloading. Pin
toxcct22-Feb-06 23:22
toxcct22-Feb-06 23:22 
AnswerRe: operator () overloading. Pin
9ine23-Feb-06 1:03
9ine23-Feb-06 1:03 
GeneralRe: operator () overloading. Pin
9ine23-Feb-06 1:01
9ine23-Feb-06 1:01 
GeneralRe: operator () overloading. Pin
BadKarma23-Feb-06 3:44
BadKarma23-Feb-06 3:44 
GeneralRe: operator () overloading. Pin
9ine23-Feb-06 5:26
9ine23-Feb-06 5:26 
GeneralRe: operator () overloading. Pin
BadKarma23-Feb-06 8:29
BadKarma23-Feb-06 8:29 
QuestionCrystal Reports 11 with visual Studio .NET Pin
Irfan Shahid23-Feb-06 1:04
Irfan Shahid23-Feb-06 1:04 
QuestionRe: operator () overloading. Pin
David Crow23-Feb-06 3:41
David Crow23-Feb-06 3:41 
AnswerRe: operator () overloading. Pin
9ine23-Feb-06 5:18
9ine23-Feb-06 5:18 
GeneralRe: operator () overloading. Pin
David Crow23-Feb-06 5:45
David Crow23-Feb-06 5:45 
GeneralRe: operator () overloading. Pin
9ine23-Feb-06 22:59
9ine23-Feb-06 22:59 
GeneralRe: operator () overloading. Pin
David Crow24-Feb-06 2:42
David Crow24-Feb-06 2:42 
GeneralRe: operator () overloading. Pin
9ine24-Feb-06 3:00
9ine24-Feb-06 3:00 
QuestionRe: operator () overloading. Pin
David Crow24-Feb-06 3:08
David Crow24-Feb-06 3:08 
AnswerRe: operator () overloading. Pin
9ine25-Feb-06 1:08
9ine25-Feb-06 1:08 
GeneralRe: operator () overloading. Pin
jhwurmbach23-Feb-06 22:20
jhwurmbach23-Feb-06 22:20 

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.