Re: [Dev-C++] Choose a word from a .txt file
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
From: Per W. <pw...@ia...> - 2008-06-03 08:33:26
|
No regular expressions if he is looking for an exact match. Regular expressions are there to look for patterns. Normal strcmp()/strncmp() is faster when looking for exact matches. /pwm On Tue, 3 Jun 2008, Lloyd wrote: > Wouldn't regular expression search help you? May be better solution > could be there... > > check for regex in www.boost.org > > > On Tue, 2008-06-03 at 01:24 -0300, Alexsandro Meireles wrote: > > Dear users, > > > > How can I write a script to look a word in a .txt file with two > > columns (one is the word and the other is the answer I need) and give > > an answer which is in the second column. In other words, a user types > > a word, then the script match it with a word in a .txt file (first > > column) and gives the answer (second column). > > > > Thanks in advance! > > > > Alex. > > > > > > ______________________________________ > Scanned and protected by Email scanner > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |