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

C / C++ / MFC

 
AnswerRe: Buttons background color Pin
Mircea Puiu2-Oct-05 0:36
Mircea Puiu2-Oct-05 0:36 
AnswerRe: Buttons background color Pin
John M. Drescher2-Oct-05 6:30
John M. Drescher2-Oct-05 6:30 
Questionprogram to change desktop themes?? Pin
gr8coaster3291-Oct-05 14:15
gr8coaster3291-Oct-05 14:15 
QuestionXP visual style Pin
Rage_bla1-Oct-05 13:11
Rage_bla1-Oct-05 13:11 
AnswerRe: XP visual style Pin
Ravi Bhavnani1-Oct-05 16:45
professionalRavi Bhavnani1-Oct-05 16:45 
GeneralRe: XP visual style Pin
Rage_bla1-Oct-05 17:33
Rage_bla1-Oct-05 17:33 
GeneralRe: XP visual style Pin
Ravi Bhavnani1-Oct-05 17:37
professionalRavi Bhavnani1-Oct-05 17:37 
QuestionWhy does Integer work, but not Boolean in Linux? Pin
LiquidE_SA1-Oct-05 9:10
LiquidE_SA1-Oct-05 9:10 
Can anyone please tell me why this code code gives a segmentation? The

class NonLeafTrieNode
{
public:
NonLeafTrieNode(){};
NonLeafTrieNode(char);

private:
friend class Trie;

NonLeafTrieNode **ptrs;
char *letters;
int endOfWord;
bool isLeaf;
};

The code below are in the Trie class and I use this to access the isLeaf variable in the class.

int flag = p->ptrs[pos]->isLeaf;
if (!(pos == -1) && flag)

If I keep the isLeaf variable a boolean the code gives a segmentation fault, but whenever I make it a integer the code works perfectly.

Can anyone tell me why this happens.

Thanks a lot
LiquidE_SA
AnswerRe: Why does Integer work, but not Boolean in Linux? Pin
Graham Bradshaw1-Oct-05 11:26
Graham Bradshaw1-Oct-05 11:26 
AnswerRe: Why does Integer work, but not Boolean in Linux? Pin
PJ Arends1-Oct-05 12:38
professionalPJ Arends1-Oct-05 12:38 
GeneralRe: Why does Integer work, but not Boolean in Linux? Pin
Jörgen Sigvardsson1-Oct-05 14:00
Jörgen Sigvardsson1-Oct-05 14:00 
AnswerRe: Why does Integer work, but not Boolean in Linux? Pin
Prakash Nadar1-Oct-05 16:47
Prakash Nadar1-Oct-05 16:47 
QuestionUsing Protocols like SIP,H.323,RSVP,RTCP Pin
Naveen Prabhat1-Oct-05 6:15
Naveen Prabhat1-Oct-05 6:15 
QuestionWebBrowser AND Internet Options Pin
RaymondM1-Oct-05 5:07
RaymondM1-Oct-05 5:07 
AnswerRe: WebBrowser AND Internet Options Pin
Ravi Bhavnani1-Oct-05 5:41
professionalRavi Bhavnani1-Oct-05 5:41 
GeneralRe: WebBrowser AND Internet Options Pin
RaymondM1-Oct-05 6:20
RaymondM1-Oct-05 6:20 
QuestionRedraw the full screen? Pin
Rage_bla1-Oct-05 4:00
Rage_bla1-Oct-05 4:00 
AnswerRe: Redraw the full screen? Pin
FarPointer1-Oct-05 5:38
FarPointer1-Oct-05 5:38 
GeneralRe: Redraw the full screen? Pin
Rage_bla1-Oct-05 6:50
Rage_bla1-Oct-05 6:50 
GeneralRe: Redraw the full screen? Pin
Rage_bla1-Oct-05 7:22
Rage_bla1-Oct-05 7:22 
AnswerRe: Redraw the full screen? Pin
douglasjordan1-Oct-05 8:15
douglasjordan1-Oct-05 8:15 
GeneralRe: Redraw the full screen? Pin
Rage_bla1-Oct-05 11:13
Rage_bla1-Oct-05 11:13 
Questionhow to Insert BLOB images into Oracle Databse using ADO Pin
snprani1-Oct-05 3:29
snprani1-Oct-05 3:29 
QuestionMy windows aren't displayed in the taskbar Pin
Axonn Echysttas1-Oct-05 2:54
Axonn Echysttas1-Oct-05 2:54 
AnswerRe: My windows aren't displayed in the taskbar Pin
mark novak1-Oct-05 3:28
mark novak1-Oct-05 3:28 

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.