search in text file

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Oct 2007
Posts: 52
Reputation: reaven is an unknown quantity at this point 
Solved Threads: 0
reaven reaven is offline Offline
Junior Poster in Training

Re: search in text file

 
0
  #31
Oct 13th, 2007
ancient dragon told me something but dont know how to user it !
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 52
Reputation: reaven is an unknown quantity at this point 
Solved Threads: 0
reaven reaven is offline Offline
Junior Poster in Training

Re: search in text file

 
0
  #32
Oct 13th, 2007
  1. translate(word.begin(), word.end(), word.begin(), tolower);
Reply With Quote Quick reply to this message  
Join Date: Sep 2004
Posts: 7,823
Reputation: Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute Narue has a reputation beyond repute 
Solved Threads: 748
Team Colleague
Narue's Avatar
Narue Narue is offline Offline
Senior Bitch

Re: search in text file

 
0
  #33
Oct 13th, 2007
>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>:
  1. transform ( word, word + strlen ( word ), word, tolower );
New members chased away this month: 3
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 52
Reputation: reaven is an unknown quantity at this point 
Solved Threads: 0
reaven reaven is offline Offline
Junior Poster in Training

Re: search in text file

 
0
  #34
Oct 15th, 2007
thanks a lot guys everything is working fine!!
Reply With Quote Quick reply to this message  
Join Date: Jan 2009
Posts: 3
Reputation: Michael_Smith is an unknown quantity at this point 
Solved Threads: 0
Michael_Smith Michael_Smith is offline Offline
Newbie Poster

Re: search in text file

 
0
  #35
Feb 7th, 2009
Originally Posted by reaven View Post
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
Reply With Quote Quick reply to this message  
Join Date: Dec 2004
Posts: 2,413
Reputation: Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough Comatose is a jewel in the rough 
Solved Threads: 211
Team Colleague
Comatose's Avatar
Comatose Comatose is offline Offline
Taboo Programmer

Re: search in text file

 
0
  #36
Feb 7th, 2009
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.
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



Tag cloud for C++
About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC