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

C / C++ / MFC

 
AnswerRe: A funny thing happened to me. Who can explain? Pin
David Crow13-May-04 5:17
David Crow13-May-04 5:17 
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 5:36
toxcct13-May-04 5:36 
GeneralRe: A funny thing happened to me. Who can explain? Pin
David Crow13-May-04 5:41
David Crow13-May-04 5:41 
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 5:44
toxcct13-May-04 5:44 
GeneralRe: A funny thing happened to me. Who can explain? Pin
David Crow13-May-04 6:28
David Crow13-May-04 6:28 
GeneralRe: A funny thing happened to me. Who can explain? Pin
toxcct13-May-04 6:35
toxcct13-May-04 6:35 
GeneralRe: A funny thing happened to me. Who can explain? Pin
David Crow13-May-04 6:48
David Crow13-May-04 6:48 
AnswerRe: A funny thing happened to me. Who can explain? Pin
vividtang14-May-04 0:29
vividtang14-May-04 0:29 
#include <iostream>
using namespace std;
int main(){
int a=10;
int* p=(int*)&a;
*p=100;
int i=a;
cout << "p=" << p << endl;
cout << "&a=" << &a << endl;
cout << "*p=" << *p << endl;
cout << "a=" << a << endl;
cout << "i=" << i << endl;
return 0;
}
the running result
p=0012FF7C
&a=0012FF7C
*p=100
a=100
i=100
GeneralRe: A funny thing happened to me. Who can explain? Pin
Anand Paranjpe14-May-04 0:37
Anand Paranjpe14-May-04 0:37 
AnswerRe: A funny thing happened to me. Who can explain? Pin
Anand Paranjpe14-May-04 0:34
Anand Paranjpe14-May-04 0:34 
GeneralSharing violation error when loading a DLL Pin
DaFrawg13-May-04 1:08
DaFrawg13-May-04 1:08 
GeneralRe: Sharing violation error when loading a DLL Pin
bikram singh13-May-04 5:28
bikram singh13-May-04 5:28 
GeneralRe: Sharing violation error when loading a DLL Pin
DaFrawg23-May-04 22:45
DaFrawg23-May-04 22:45 
GeneralCapture Video from tv Tunner card Pin
Anonymous13-May-04 1:03
Anonymous13-May-04 1:03 
GeneralRe: Capture Video from tv Tunner card Pin
marcosvpp13-May-04 5:00
marcosvpp13-May-04 5:00 
GeneralESP error calling DLL exported function... Pin
Chris Ulliott13-May-04 0:54
Chris Ulliott13-May-04 0:54 
GeneralRe: ESP error calling DLL exported function... Pin
Justin Cooke13-May-04 4:19
Justin Cooke13-May-04 4:19 
GeneralRe: ESP error calling DLL exported function... Pin
bikram singh13-May-04 5:13
bikram singh13-May-04 5:13 
GeneralDrawThemeText Pin
Steve Thresher13-May-04 0:53
Steve Thresher13-May-04 0:53 
GeneralNetwork I/O models Pin
Rickard Andersson2012-May-04 23:51
Rickard Andersson2012-May-04 23:51 
GeneralRe: Network I/O models Pin
Mike Dimmick13-May-04 3:27
Mike Dimmick13-May-04 3:27 
GeneralInstead a dialog I want to appear 3 buttons Pin
Filomela12-May-04 23:30
Filomela12-May-04 23:30 
GeneralRe: Instead a dialog I want to appear 3 buttons Pin
nguyenvhn13-May-04 1:50
nguyenvhn13-May-04 1:50 
GeneralRe: Instead a dialog I want to appear 3 buttons Pin
Filomela13-May-04 21:42
Filomela13-May-04 21:42 
GeneralRe: Instead a dialog I want to appear 3 buttons Pin
nguyenvhn13-May-04 22:41
nguyenvhn13-May-04 22:41 

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.