Click here to Skip to main content
16,006,355 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: lstrlen problem Pin
James R. Twine24-May-07 1:00
James R. Twine24-May-07 1:00 
GeneralRe: lstrlen problem Pin
Naveen24-May-07 1:01
Naveen24-May-07 1:01 
QuestionIs my approach feasible? C++ Pin
C_Zealot24-May-07 0:26
C_Zealot24-May-07 0:26 
AnswerRe: Is my approach feasible? C++ Pin
Christian Graus24-May-07 0:50
protectorChristian Graus24-May-07 0:50 
AnswerRe: Is my approach feasible? C++ Pin
James R. Twine24-May-07 0:51
James R. Twine24-May-07 0:51 
GeneralRe: Is my approach feasible? C++ Pin
C_Zealot24-May-07 0:52
C_Zealot24-May-07 0:52 
GeneralRe: Is my approach feasible? C++ Pin
James R. Twine24-May-07 0:57
James R. Twine24-May-07 0:57 
GeneralRe: Is my approach feasible? C++ Pin
C_Zealot24-May-07 1:24
C_Zealot24-May-07 1:24 
Hi James:

"For example, if you are building a tokenizer, you might want to build something using (f)lex. If you are counting words in a small file, strtok(...) with a local buffer may work, if using a large file, skipping characters manually with a memory mapped file may work better, etc."

Your comments are way above my head. Smile | :) I just started learning C++ two weeks ago. Having said that, I do have some knowledge on C programming.

What I try to achieve is simply to produce a "concordance" program using C++. I need to count every word from a text file and make a record of where they are.

First of all, I need to read a word at one time from this text file in the way I described before. I am not so sure now which "string" function I am going to use in order to achieve my goal.

Thank you
GeneralRe: Is my approach feasible? C++ Pin
James R. Twine24-May-07 2:12
James R. Twine24-May-07 2:12 
GeneralRe: Is my approach feasible? C++ Pin
David Crow24-May-07 3:49
David Crow24-May-07 3:49 
GeneralRe: Is my approach feasible? C++ Pin
Michael Sadlon24-May-07 13:10
Michael Sadlon24-May-07 13:10 
QuestionHow to Get Selected Item Position In CListControl Pin
jannathali24-May-07 0:20
jannathali24-May-07 0:20 
AnswerRe: How to Get Selected Item Position In CListControl Pin
Hamid_RT24-May-07 0:31
Hamid_RT24-May-07 0:31 
GeneralRe: How to Get Selected Item Position In CListControl Pin
jannathali24-May-07 2:39
jannathali24-May-07 2:39 
GeneralRe: How to Get Selected Item Position In CListControl Pin
Hamid_RT24-May-07 10:31
Hamid_RT24-May-07 10:31 
AnswerRe: How to Get Selected Item Position In CListControl Pin
James R. Twine24-May-07 0:53
James R. Twine24-May-07 0:53 
GeneralRe: How to Get Selected Item Position In CListControl Pin
jannathali24-May-07 1:08
jannathali24-May-07 1:08 
GeneralRe: How to Get Selected Item Position In CListControl Pin
James R. Twine24-May-07 2:13
James R. Twine24-May-07 2:13 
GeneralRe: How to Get Selected Item Position In CListControl Pin
Hamid_RT24-May-07 10:31
Hamid_RT24-May-07 10:31 
QuestionThreads Pin
Kiran Pinjala24-May-07 0:10
Kiran Pinjala24-May-07 0:10 
AnswerRe: Threads Pin
baerten24-May-07 0:20
baerten24-May-07 0:20 
GeneralRe: Threads Pin
Kiran Pinjala24-May-07 0:32
Kiran Pinjala24-May-07 0:32 
GeneralRe: Threads Pin
baerten24-May-07 1:06
baerten24-May-07 1:06 
AnswerRe: Threads Pin
Roger Stoltz24-May-07 1:46
Roger Stoltz24-May-07 1:46 
QuestionGetting file/folder properties Pin
Akin Ocal23-May-07 23:31
Akin Ocal23-May-07 23:31 

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.