Click here to Skip to main content
15,914,444 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generaldialog templates in memory for a wizard Pin
giorgos22-Jun-01 4:03
giorgos22-Jun-01 4:03 
GeneralSwitching views in a splitter pane Pin
Malcolm McMahon22-Jun-01 3:24
Malcolm McMahon22-Jun-01 3:24 
GeneralRe: Switching views in a splitter pane Pin
Tomasz Sowinski22-Jun-01 4:13
Tomasz Sowinski22-Jun-01 4:13 
GeneralRe: Switching views in a splitter pane Pin
Malcolm McMahon22-Jun-01 5:12
Malcolm McMahon22-Jun-01 5:12 
GeneralRe: Switching views in a splitter pane Pin
Tomasz Sowinski22-Jun-01 5:16
Tomasz Sowinski22-Jun-01 5:16 
GeneralRe: Switching views in a splitter pane Pin
22-Jun-01 4:22
suss22-Jun-01 4:22 
GeneralRe: Switching views in a splitter pane Pin
Malcolm McMahon22-Jun-01 5:46
Malcolm McMahon22-Jun-01 5:46 
GeneralConfusing code Pin
Rejeesh22-Jun-01 2:16
Rejeesh22-Jun-01 2:16 
#include <iostream>
using namespace std;

struct C;

struct D {
void operator*(D) { cout << "one\n"; }
} C;


struct E {
void operator*(E) { cout << "two\n"; }
} F;

struct F;

int main(){
C* C;
F* F;
return 0;
}

I got the above code from a C++ site. This code prints "one" "two" on the screen. Can anybody explain why is it printing so?
Confused | :confused: Confused | :confused: Confused | :confused:

void (*p[10]) (void (*)());
GeneralRe: Confusing code Pin
Tomasz Sowinski22-Jun-01 2:39
Tomasz Sowinski22-Jun-01 2:39 
GeneralRe: Confusing code Pin
Rejeesh22-Jun-01 5:04
Rejeesh22-Jun-01 5:04 
GeneralCRichEditCtrl onthe Fly Pin
sankar22-Jun-01 1:30
sankar22-Jun-01 1:30 
GeneralRe: CRichEditCtrl onthe Fly Pin
Tomasz Sowinski22-Jun-01 1:58
Tomasz Sowinski22-Jun-01 1:58 
GeneralShowing modeless forms in VB DLLs called from MFC Pin
22-Jun-01 1:17
suss22-Jun-01 1:17 
GeneralDetermination of installed browsers & java engines Pin
22-Jun-01 1:01
suss22-Jun-01 1:01 
GeneralCHtmlView - load html from memory Pin
Kristian Nilssen22-Jun-01 0:47
Kristian Nilssen22-Jun-01 0:47 
GeneralRe: CHtmlView - load html from memory Pin
22-Jun-01 3:56
suss22-Jun-01 3:56 
GeneralRe: CHtmlView - load html from memory Pin
22-Jun-01 11:00
suss22-Jun-01 11:00 
GeneralCapture Screen and save it as a JPEG file Pin
Kiddxin22-Jun-01 0:05
Kiddxin22-Jun-01 0:05 
GeneralRe: Capture Screen and save it as a JPEG file Pin
olivier22-Jun-01 2:08
olivier22-Jun-01 2:08 
QuestionWhich method of CFile write as text to file ??? Pin
21-Jun-01 21:50
suss21-Jun-01 21:50 
AnswerRe: Which method of CFile write as text to file ??? Pin
Michael Dunn21-Jun-01 21:53
sitebuilderMichael Dunn21-Jun-01 21:53 
GeneralThis is my struct: Please show me how to save it to file as text by CFile object Pin
21-Jun-01 22:13
suss21-Jun-01 22:13 
GeneralURGENT !!! HELP !!! PLEASE !!! Pin
21-Jun-01 23:19
suss21-Jun-01 23:19 
GeneralI did write so: Pin
22-Jun-01 4:47
suss22-Jun-01 4:47 
Generalshell programming - adding a network place automatically Pin
21-Jun-01 21:49
suss21-Jun-01 21:49 

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.