Click here to Skip to main content
15,922,166 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
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 
Hi Prasad,

Code as no effect its adding all the words.
<br />
<br />
void getoff(char *fname)<br />
{<br />
	ifstream fin;<br />
	fin.open(fname,ios::in);<br />
<br />
<br />
	int wsize;<br />
	string stemp;<br />
	<br />
	//Loops till the end of the file.<br />
	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 />
		for(int j =0; j < wsize; j++)<br />
		{<br />
          if (isalpha(stemp[j]))<br />
		  {<br />
            FMap[stemp] = offset;<br />
		  }<br />
		}<br />
 	}<br />
			<br />
	fin.close();<br />
}<br />

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 
AnswerRe: Debug works, release fails MySQL++ Pin
ThatsAlok1-Apr-07 20:49
ThatsAlok1-Apr-07 20:49 
QuestionWSAAsyncGetHostByName - undeclared identifier Pin
harshadha29-Mar-07 20:55
harshadha29-Mar-07 20:55 

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.