Click here to Skip to main content
15,916,835 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionConvert C++ strings to C-style string (char*) in VC++ 6.0 Pin
Dhananjayak0221-Jul-06 23:31
Dhananjayak0221-Jul-06 23:31 
AnswerRe: Convert C++ strings to C-style string (char*) in VC++ 6.0 Pin
Stephen Hewitt22-Jul-06 0:35
Stephen Hewitt22-Jul-06 0:35 
AnswerRe: Convert C++ strings to C-style string (char*) in VC++ 6.0 Pin
Naveen22-Jul-06 0:38
Naveen22-Jul-06 0:38 
AnswerRe: Convert C++ strings to C-style string (char*) in VC++ 6.0 Pin
Eytukan22-Jul-06 5:11
Eytukan22-Jul-06 5:11 
GeneralRe: Convert C++ strings to C-style string (char*) in VC++ 6.0 Pin
Dhananjayak0222-Jul-06 8:43
Dhananjayak0222-Jul-06 8:43 
AnswerRe: Convert C++ strings to C-style string (char*) in VC++ 6.0 Pin
ThatsAlok23-Jul-06 21:19
ThatsAlok23-Jul-06 21:19 
Questionchange image resolution Pin
QuickDeveloper21-Jul-06 22:33
QuickDeveloper21-Jul-06 22:33 
AnswerRe: change image resolution Pin
Naveen21-Jul-06 23:13
Naveen21-Jul-06 23:13 
AnswerRe: change image resolution Pin
Hamid_RT21-Jul-06 23:36
Hamid_RT21-Jul-06 23:36 
AnswerRe: change image resolution Pin
ThatsAlok23-Jul-06 21:18
ThatsAlok23-Jul-06 21:18 
Questionhide a process! Pin
farshad.f21-Jul-06 22:24
farshad.f21-Jul-06 22:24 
AnswerRe: hide a process! Pin
Naveen21-Jul-06 23:17
Naveen21-Jul-06 23:17 
AnswerRe: hide a process! Pin
Stephen Hewitt22-Jul-06 0:38
Stephen Hewitt22-Jul-06 0:38 
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 
AnswerRe: Problem with cout... [modified] Pin
A_Fa21-Jul-06 21:36
A_Fa21-Jul-06 21:36 
fatherhood of this problem is that Test func first called for third parameter of cout . I found this by change your code :

(First MyFunc called then Test function )




<br />
<br />
class A<br />
{<br />
private:<br />
     unsigned int m_nCount;<br />
<br />
public:<br />
     A()<br />
     {<br />
          m_nCount = 0;<br />
     }<br />
    <br />
     ~A(){}<br />
<br />
     int Test()<br />
     {<br />
          m_nCount++;<br />
          return m_nCount;<br />
     }<br />
<br />
	 int MyFunc()<br />
     {<br />
          m_nCount++;<br />
          return m_nCount;<br />
     }<br />
<br />
};<br />
<br />
int _tmain(int argc, _TCHAR* argv[])<br />
{<br />
     A a;<br />
<br />
     cout << a.Test() << a.Test() << a.MyFunc() << endl;<br />
<br />
}<br />
<br />




-- modified at 3:37 Saturday 22nd July, 2006
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 

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.