Click here to Skip to main content
15,902,276 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: hide a process! Pin
Eytukan22-Jul-06 4:43
Eytukan22-Jul-06 4:43 
GeneralRe: hide a process! Pin
ThatsAlok23-Jul-06 21:15
ThatsAlok23-Jul-06 21:15 
AnswerRe: hide a process! Pin
ThatsAlok23-Jul-06 21:15
ThatsAlok23-Jul-06 21:15 
QuestionNeed Help On Netmeeting 3 SDK. Pin
Kiran Pinjala21-Jul-06 22:07
Kiran Pinjala21-Jul-06 22:07 
AnswerRe: Need Help On Netmeeting 3 SDK. Pin
ThatsAlok23-Jul-06 21:14
ThatsAlok23-Jul-06 21:14 
QuestionLoading 3D images.. Pin
Noor Akhter21-Jul-06 21:07
Noor Akhter21-Jul-06 21:07 
AnswerRe: Loading 3D images.. Pin
JWood22-Jul-06 1:02
JWood22-Jul-06 1:02 
QuestionProblem with cout... Pin
Talent Chan21-Jul-06 20:52
Talent Chan21-Jul-06 20:52 
_I am using Visual Studio C++ .NET 2003, and I have problem when using cout. Here is my code:

#include <iostream>
using namespace std;

class A
{
private:
unsigned int m_nCount;

public:
A()
{
m_nCount = 0;
}

~A(){}

int Test()
{
m_nCount++;
return m_nCount;
}

};

void main()
{
A a;
cout << a.Test() << a.Test() << a.Test() << endl;
}

_ I expected that the output must be "123" but it was "321". I don't know what to do. Is my code wrong or that's a bug of VS C++ 2003. I need your help, thanks in anvance!!!
AnswerRe: Problem with cout... [modified] Pin
A_Fa21-Jul-06 21:36
A_Fa21-Jul-06 21:36 
GeneralRe: Problem with cout... Pin
Talent Chan21-Jul-06 22:55
Talent Chan21-Jul-06 22:55 
GeneralRe: Problem with cout... Pin
A_Fa22-Jul-06 0:15
A_Fa22-Jul-06 0:15 
GeneralRe: Problem with cout... Pin
debugger_200822-Jul-06 0:45
debugger_200822-Jul-06 0:45 
AnswerRe: Problem with cout... Pin
Stephen Hewitt22-Jul-06 1:09
Stephen Hewitt22-Jul-06 1:09 
AnswerRe: Problem with cout... Pin
Talent Chan22-Jul-06 1:53
Talent Chan22-Jul-06 1:53 
AnswerRe: Problem with cout... Pin
Michael Dunn22-Jul-06 9:40
sitebuilderMichael Dunn22-Jul-06 9:40 
QuestionProblem about the "Optimization: Maximize Speed(O2)" Pin
chenxiujie21-Jul-06 18:10
chenxiujie21-Jul-06 18:10 
QuestionHow can I build a library for Mac (or Linux) on Windows Pin
plowstar21-Jul-06 16:49
plowstar21-Jul-06 16:49 
QuestionHow to forbid the user to terminate my program. Pin
Member 200639821-Jul-06 16:30
Member 200639821-Jul-06 16:30 
QuestionRe: How to forbid the user to terminate my program. Pin
Steve Echols21-Jul-06 17:03
Steve Echols21-Jul-06 17:03 
AnswerRe: How to forbid the user to terminate my program. Pin
Joe Woodbury21-Jul-06 17:37
professionalJoe Woodbury21-Jul-06 17:37 
GeneralRe: How to forbid the user to terminate my program. Pin
flippydeflippydebop21-Jul-06 19:25
flippydeflippydebop21-Jul-06 19:25 
GeneralRe: How to forbid the user to terminate my program. Pin
wanglei198021-Jul-06 19:35
wanglei198021-Jul-06 19:35 
AnswerRe: How to forbid the user to terminate my program. Pin
Stephen Hewitt21-Jul-06 19:38
Stephen Hewitt21-Jul-06 19:38 
GeneralRe: How to forbid the user to terminate my program. Pin
Hamid_RT21-Jul-06 23:37
Hamid_RT21-Jul-06 23:37 
AnswerRe: How to forbid the user to terminate my program. Pin
Maxwell Chen22-Jul-06 7:41
Maxwell Chen22-Jul-06 7: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.