Click here to Skip to main content
15,913,722 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How can I find style of CListCtrl ? Pin
_Flaviu3-May-11 0:08
_Flaviu3-May-11 0:08 
GeneralRe: How can I find style of CListCtrl ? Pin
Niklas L3-May-11 2:42
Niklas L3-May-11 2:42 
AnswerRe: How can I find style of CListCtrl ? Pin
Hans Dietrich3-May-11 7:47
mentorHans Dietrich3-May-11 7:47 
QuestionC# ASP.NET TreeView control Pin
RalfPeter2-May-11 12:57
RalfPeter2-May-11 12:57 
AnswerRe: C# ASP.NET TreeView control Pin
Hans Dietrich2-May-11 15:23
mentorHans Dietrich2-May-11 15:23 
GeneralRe: C# ASP.NET TreeView control Pin
RalfPeter3-May-11 3:47
RalfPeter3-May-11 3:47 
QuestionOutput characters into a file Pin
Francis Paran2-May-11 9:40
Francis Paran2-May-11 9:40 
AnswerRe: Output characters into a file Pin
Niklas L2-May-11 10:21
Niklas L2-May-11 10:21 
You could rewrite the function to take the ostream as an argument
C++
void encode(QueueNode *ithNode, char charKey, ostream &os)
{
     if (ithNode->rightCursor != NULL)
     {  if (ithNode->leftCursor->value == charKey)
           os<<"1";
        else
        {
            os<<"0";
            encode(ithNode->rightCursor,charKey, os);
        }
     }
     else
         os<<"1";
}

And call it
C++
ofstream ofs("data.dat");
encode(..., ..., ofs);
// or
encode(..., ..., cout);


GeneralRe: Output characters into a file Pin
Francis Paran2-May-11 13:10
Francis Paran2-May-11 13:10 
Questionhow to make folder to file extension Pin
sarfaraznawaz2-May-11 2:43
sarfaraznawaz2-May-11 2:43 
AnswerRe: how to make folder to file extension Pin
David Crow2-May-11 2:59
David Crow2-May-11 2:59 
AnswerRe: how to make folder to file extension Pin
Niklas L2-May-11 5:23
Niklas L2-May-11 5:23 
AnswerRe: how to make folder to file extension Pin
Hans Dietrich2-May-11 6:02
mentorHans Dietrich2-May-11 6:02 
Questionimplementing multi linked list correctly_? Pin
quartaela1-May-11 23:52
quartaela1-May-11 23:52 
AnswerRe: implementing multi linked list correctly_? Pin
Stefan_Lang2-May-11 0:22
Stefan_Lang2-May-11 0:22 
GeneralRe: implementing multi linked list correctly_? Pin
quartaela2-May-11 0:28
quartaela2-May-11 0:28 
GeneralRe: implementing multi linked list correctly_? Pin
Stefan_Lang2-May-11 0:44
Stefan_Lang2-May-11 0:44 
GeneralRe: implementing multi linked list correctly_? Pin
quartaela2-May-11 0:56
quartaela2-May-11 0:56 
GeneralRe: implementing multi linked list correctly_? Pin
Stefan_Lang2-May-11 2:44
Stefan_Lang2-May-11 2:44 
GeneralRe: implementing multi linked list correctly_? Pin
quartaela2-May-11 4:06
quartaela2-May-11 4:06 
GeneralRe: implementing multi linked list correctly_? Pin
Stefan_Lang2-May-11 4:44
Stefan_Lang2-May-11 4:44 
GeneralRe: implementing multi linked list correctly_? Pin
quartaela2-May-11 4:59
quartaela2-May-11 4:59 
GeneralRe: implementing multi linked list correctly_? Pin
Stefan_Lang2-May-11 6:20
Stefan_Lang2-May-11 6:20 
GeneralRe: implementing multi linked list correctly_? Pin
quartaela2-May-11 7:38
quartaela2-May-11 7:38 
AnswerRe: implementing multi linked list correctly_? Pin
David Crow2-May-11 9:13
David Crow2-May-11 9:13 

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.