943,905 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 10964
  • C++ RSS
You are currently viewing page 4 of this multi-page discussion thread; Jump to the first page
Oct 13th, 2007
0

Re: search in text file

ancient dragon told me something but dont know how to user it !
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
reaven is offline Offline
52 posts
since Oct 2007
Oct 13th, 2007
0

Re: search in text file

C++ Syntax (Toggle Plain Text)
  1. translate(word.begin(), word.end(), word.begin(), tolower);
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
reaven is offline Offline
52 posts
since Oct 2007
Oct 13th, 2007
0

Re: search in text file

>translate
It's transform, not translate. Be sure to include the <algorithm> header, and keep in mind that the way you're doing it might not work. But it probably will, so no worries at this point. Also, unless you want to change word so that it's a std::string object, you can't use the begin and end member functions. This will work (but you also have to include <cstring>:
C++ Syntax (Toggle Plain Text)
  1. transform ( word, word + strlen ( word ), word, tolower );
Administrator
Reputation Points: 6442
Solved Threads: 1393
Bad Cop
Narue is offline Offline
11,807 posts
since Sep 2004
Oct 15th, 2007
0

Re: search in text file

thanks a lot guys everything is working fine!!
Reputation Points: 10
Solved Threads: 0
Junior Poster in Training
reaven is offline Offline
52 posts
since Oct 2007
Feb 7th, 2009
0

Re: search in text file

Click to Expand / Collapse  Quote originally posted by reaven ...
I put it there but still dont work !!

it is my code right or wrong?
Hope it's not too late but I would recommend you do some research in this [removed link]. Wish this be useful to you...
Last edited by Narue; Mar 10th, 2009 at 6:27 pm. Reason: snipped link
Reputation Points: 6
Solved Threads: 0
Newbie Poster
Michael_Smith is offline Offline
3 posts
since Jan 2009
Feb 7th, 2009
0

Re: search in text file

It is too late.... this thread is like, 2 years old man, and the OP said he got it working.....
Last edited by Comatose; Feb 7th, 2009 at 7:38 pm.
Team Colleague
Reputation Points: 361
Solved Threads: 214
Taboo Programmer
Comatose is offline Offline
2,413 posts
since Dec 2004

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Questions re: 2D Array w/bubble sort
Next Thread in C++ Forum Timeline: sin , cos , tan , cot , exp , pow , fabs & fibonachi simulation





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC