Click here to Skip to main content
15,896,269 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: about timestamp Pin
David Crow17-Aug-06 3:10
David Crow17-Aug-06 3:10 
GeneralRe: about timestamp Pin
George_George17-Aug-06 22:52
George_George17-Aug-06 22:52 
GeneralRe: about timestamp Pin
David Crow18-Aug-06 2:53
David Crow18-Aug-06 2:53 
GeneralRe: about timestamp Pin
George_George18-Aug-06 21:33
George_George18-Aug-06 21:33 
QuestionUndefined operator? Pin
Skippums16-Aug-06 1:59
Skippums16-Aug-06 1:59 
AnswerRe: Undefined operator? Pin
Emilio Garavaglia16-Aug-06 2:22
Emilio Garavaglia16-Aug-06 2:22 
GeneralInheritance properties Pin
Skippums16-Aug-06 8:35
Skippums16-Aug-06 8:35 
GeneralRe: Inheritance properties [modified] Pin
Emilio Garavaglia17-Aug-06 5:30
Emilio Garavaglia17-Aug-06 5:30 
Skippums wrote:
I attempted that piece of code, and received an error like "Using non-static member of List<char>"

OOPS: In fact I did a mistake in writing the function: List::operator+ returns a List, not a String as i did.

Skippums wrote:
Is there a way to make them equivalent, perhaps by using another method of definition?


No, that's basic C++ scope overriding.
class A
{ 
  void f1(int) { ... }
  void f1(double) { ... }
};

class B: public A
{
  void f1(double) { ... }
};


It is not B::f1(double) overriding A::f1(double).
It is B::f1 masking A::f1, whatever f1 represent in A or B.
You can have as many f1 variant you want in A, but as you declare f1 to do whatever thing in B, f1 in A is "masked, when working with B scope".




-- modified at 11:32 Thursday 17th August, 2006


2 bugs found.
> recompile ...
65534 bugs found.
D'Oh! | :doh:

Questionproblem in my progress bar (attached in a Dialog) Pin
mrhataw16-Aug-06 1:39
mrhataw16-Aug-06 1:39 
AnswerRe: problem in my progress bar (attached in a Dialog) Pin
Rage16-Aug-06 1:41
professionalRage16-Aug-06 1:41 
AnswerRe: problem in my progress bar (attached in a Dialog) Pin
Cedric Moonen16-Aug-06 1:45
Cedric Moonen16-Aug-06 1:45 
Questiongetch() problem. Pin
Kiran Pinjala16-Aug-06 1:10
Kiran Pinjala16-Aug-06 1:10 
AnswerRe: getch() problem. Pin
Rage16-Aug-06 1:28
professionalRage16-Aug-06 1:28 
AnswerRe: getch() problem. Pin
sunit516-Aug-06 1:46
sunit516-Aug-06 1:46 
AnswerRe: getch() problem. Pin
David Crow16-Aug-06 2:40
David Crow16-Aug-06 2:40 
Questionwav file format [modified] Pin
69 Bay16-Aug-06 0:35
69 Bay16-Aug-06 0:35 
Questionpragma once Pin
Sarvan AL16-Aug-06 0:14
Sarvan AL16-Aug-06 0:14 
AnswerRe: pragma once Pin
Rage16-Aug-06 1:40
professionalRage16-Aug-06 1:40 
GeneralRe: pragma once Pin
Sarvan AL16-Aug-06 1:48
Sarvan AL16-Aug-06 1:48 
GeneralRe: pragma once [modified] Pin
sunit516-Aug-06 2:03
sunit516-Aug-06 2:03 
QuestionCannot edit and continue in VC++ 2005. Pin
tonyvsuk15-Aug-06 23:46
tonyvsuk15-Aug-06 23:46 
QuestionVC++ Linking error to do with += Operator Pin
ajisthekingofpop15-Aug-06 23:40
ajisthekingofpop15-Aug-06 23:40 
AnswerRe: VC++ Linking error to do with += Operator Pin
Rage16-Aug-06 1:42
professionalRage16-Aug-06 1:42 
QuestionRe: VC++ Linking error to do with += Operator Pin
David Crow16-Aug-06 2:47
David Crow16-Aug-06 2:47 
AnswerRe: VC++ Linking error to do with += Operator Pin
Zac Howland16-Aug-06 4:17
Zac Howland16-Aug-06 4:17 

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.