Click here to Skip to main content
15,921,990 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to check the ASCII value ?? Pin
Suresh H29-Mar-07 23:46
Suresh H29-Mar-07 23:46 
GeneralRe: How to check the ASCII value ?? Pin
Parthi_Appu30-Mar-07 0:02
Parthi_Appu30-Mar-07 0:02 
GeneralRe: How to check the ASCII value ?? Pin
Suresh H30-Mar-07 0:27
Suresh H30-Mar-07 0:27 
GeneralRe: How to check the ASCII value ?? Pin
ThatsAlok1-Apr-07 20:51
ThatsAlok1-Apr-07 20:51 
AnswerRe: How to check the ASCII value ?? Pin
prasad_som29-Mar-07 23:59
prasad_som29-Mar-07 23:59 
JokeRe: How to check the ASCII value ?? Pin
toxcct30-Mar-07 0:00
toxcct30-Mar-07 0:00 
GeneralRe: How to check the ASCII value ?? Pin
prasad_som30-Mar-07 0:08
prasad_som30-Mar-07 0:08 
GeneralRe: How to check the ASCII value ?? Pin
Suresh H30-Mar-07 0:30
Suresh H30-Mar-07 0:30 
Hi Prasad,

Thank you very much for the help. i made changes a below and its working now perfectly.

i had never used isalpha so i was with ascii code, thanks for the info.

while(!fin.eof())<br />
	{<br />
		fin >> word; <br />
		//strlwr(word);<br />
		wsize =  strlen(word);<br />
		offset=fin.tellg();	<br />
		offset = offset - wsize + 1;<br />
		//Insert Words and its offset in to Map<br />
		stemp = word;<br />
<br />
		 bool bValid = true;<br />
 <br />
		 for (int j = 0; j < wsize; j++)<br />
		{<br />
			 if (!isalpha(stemp[j]))<br />
			{<br />
                bValid = false;<br />
                break;<br />
			}<br />
		 }<br />
  <br />
		 if (bValid)<br />
         FMap[stemp] = offset;<br />
	}

AnswerRe: How to check the ASCII value ?? Pin
prasad_som29-Mar-07 21:41
prasad_som29-Mar-07 21:41 
GeneralRe: How to check the ASCII value ?? Pin
Suresh H29-Mar-07 21:50
Suresh H29-Mar-07 21:50 
GeneralRe: How to check the ASCII value ?? Pin
Parthi_Appu29-Mar-07 22:10
Parthi_Appu29-Mar-07 22:10 
GeneralRe: How to check the ASCII value ?? Pin
cp987629-Mar-07 22:52
cp987629-Mar-07 22:52 
GeneralRe: How to check the ASCII value ?? Pin
ThatsAlok1-Apr-07 20:50
ThatsAlok1-Apr-07 20:50 
AnswerRe: How to check the ASCII value ?? Pin
Don Box30-Mar-07 1:18
Don Box30-Mar-07 1:18 
AnswerRe: How to check the ASCII value ?? Pin
prasad_som30-Mar-07 2:07
prasad_som30-Mar-07 2:07 
Questiongetting LAN speed Pin
sanjaylk29-Mar-07 21:02
sanjaylk29-Mar-07 21:02 
AnswerRe: getting LAN speed Pin
ThatsAlok29-Mar-07 22:27
ThatsAlok29-Mar-07 22:27 
GeneralRe: getting LAN speed Pin
Programm3r30-Mar-07 0:27
Programm3r30-Mar-07 0:27 
GeneralRe: getting LAN speed Pin
ThatsAlok30-Mar-07 1:15
ThatsAlok30-Mar-07 1:15 
AnswerRe: getting LAN speed Pin
Rajesh R Subramanian30-Mar-07 19:29
professionalRajesh R Subramanian30-Mar-07 19:29 
GeneralRe: getting LAN speed Pin
ThatsAlok1-Apr-07 20:48
ThatsAlok1-Apr-07 20:48 
GeneralRe: getting LAN speed Pin
Rajesh R Subramanian1-Apr-07 21:48
professionalRajesh R Subramanian1-Apr-07 21:48 
GeneralRe: getting LAN speed Pin
ThatsAlok1-Apr-07 22:10
ThatsAlok1-Apr-07 22:10 
QuestionDebug works, release fails MySQL++ Pin
tiflo29-Mar-07 21:00
tiflo29-Mar-07 21:00 
AnswerRe: Debug works, release fails MySQL++ Pin
prasad_som30-Mar-07 1:57
prasad_som30-Mar-07 1:57 

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.