Click here to Skip to main content
15,917,005 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Pls Give me an advice in win shell prog. Pin
M. Agamawi22-Mar-03 4:54
M. Agamawi22-Mar-03 4:54 
GeneralRe: Pls Give me an advice in win shell prog. Pin
Michael Dunn22-Mar-03 8:27
sitebuilderMichael Dunn22-Mar-03 8:27 
GeneralMDI - Dialogs - Cascade - Problem! Pin
Nirav Doshi22-Mar-03 3:32
Nirav Doshi22-Mar-03 3:32 
GeneralRe: MDI - Dialogs - Cascade - Problem! Pin
Ravi Bhavnani22-Mar-03 3:51
professionalRavi Bhavnani22-Mar-03 3:51 
GeneralRe: MDI - Dialogs - Cascade - Problem! Pin
Nirav Doshi22-Mar-03 3:59
Nirav Doshi22-Mar-03 3:59 
Generalprintf and unsigned char Pin
leppie22-Mar-03 3:26
leppie22-Mar-03 3:26 
GeneralRe: printf and unsigned char Pin
Nish Nishant22-Mar-03 4:49
sitebuilderNish Nishant22-Mar-03 4:49 
GeneralRe: printf and unsigned char Pin
leppie22-Mar-03 5:19
leppie22-Mar-03 5:19 
Thanks Nish, but I'm not sure that will help Confused | :confused:

I'm reading Afrikaans text from a file. And Afrikaans has all those nice o's, e's, with various thingies on them. Here's some code:

FILE *input;
char inputfile[50] = "input.txt";
char word[50];
char yesno;

if ((input = fopen(inputfile, "r")))
{
  while (!feof(input))
  {  	  
    fscanf(input, "%s", word);
    	
    if (!trieIsMember(word))
    {
      //here the "upper" (128+) chars dont print properly to console
      //the char are shown properly in the debugger though, no prob in linux
      printf("Spell Error: %-20s Add word? ", word); 
      yesno = getchar();getchar(); //for enter
      if (tolower(yesno) == 'y')
        trieAdd(word);
    }
  }
  fclose(input);
}

Any ideas?

I rated this article 2 by mistake. It deserves more. I wanted to get to the second page... - vjedlicka 3:33 25 Nov '02
GeneralRe: printf and unsigned char Pin
Nish Nishant22-Mar-03 9:43
sitebuilderNish Nishant22-Mar-03 9:43 
GeneralRe: printf and unsigned char Pin
Jambolo25-Mar-03 17:13
Jambolo25-Mar-03 17:13 
GeneralRe: printf and unsigned char Pin
leppie22-Mar-03 6:21
leppie22-Mar-03 6:21 
GeneralRe: printf and unsigned char Pin
Nish Nishant22-Mar-03 9:44
sitebuilderNish Nishant22-Mar-03 9:44 
GeneralRe: printf and unsigned char Pin
leppie22-Mar-03 10:17
leppie22-Mar-03 10:17 
GeneralRe: printf and unsigned char Pin
Nish Nishant22-Mar-03 10:59
sitebuilderNish Nishant22-Mar-03 10:59 
GeneralRe: printf and unsigned char Pin
leppie22-Mar-03 18:20
leppie22-Mar-03 18:20 
GeneralRe: printf and unsigned char Pin
Nirav Doshi23-Mar-03 4:03
Nirav Doshi23-Mar-03 4:03 
GeneralUsing TStream Pin
DREVET Olivier22-Mar-03 1:47
DREVET Olivier22-Mar-03 1:47 
GeneralRe: Using TStream Pin
Dominik Reichl22-Mar-03 2:05
Dominik Reichl22-Mar-03 2:05 
GeneralRe: Using TStream Pin
DREVET Olivier22-Mar-03 12:10
DREVET Olivier22-Mar-03 12:10 
Generalpacket consious people Pin
summo22-Mar-03 1:37
summo22-Mar-03 1:37 
GeneralRe: packet consious people Pin
valikac22-Mar-03 6:45
valikac22-Mar-03 6:45 
GeneralRe: packet consious people Pin
summo23-Mar-03 19:44
summo23-Mar-03 19:44 
GeneralConstructor conversion. Pin
WREY21-Mar-03 23:38
WREY21-Mar-03 23:38 
GeneralRe: Constructor conversion. Pin
Vimal Earnest22-Mar-03 4:45
Vimal Earnest22-Mar-03 4:45 
GeneralRe: Constructor conversion. Pin
WREY22-Mar-03 13:29
WREY22-Mar-03 13:29 

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.