| | |
search in text file
Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved |
•
•
Join Date: Oct 2007
Posts: 52
Reputation:
Solved Threads: 0
C++ Syntax (Toggle Plain Text)
translate(word.begin(), word.end(), word.begin(), tolower);
>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>:
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)
transform ( word, word + strlen ( word ), word, tolower );
New members chased away this month: 3
![]() |
Similar Threads
- open search result in text file (ASP)
- search text in a doc file (VB.NET)
- Search string in a text file (C)
- How to save all search engine results urls in a text file (C)
- Binary Search on a text file (Java)
- write to text file using fprintf() (C)
- New User (C)
- Help with delphi project (Pascal and Delphi)
Other Threads in the C++ Forum
- Previous Thread: Questions re: 2D Array w/bubble sort
- Next Thread: how can i get dual interface of mouse and keyboard?
| Thread Tools | Search this Thread |
Tag cloud for C++
api application array arrays based beginner binary bmp c++ c/c++ calculator char char* class classes code coding compile compiler console conversion convert count data database delete deploy developer display dll dynamiccharacterarray email encryption error file format forms fstream function functions game generator givemetehcodez graph homeworkhelp iamthwee ifstream image input int java lib list loop looping loops map math matrix memory multiple newbie news number numbertoword output pointer problem program programming project python random read recursion recursive reference return rpg simple sorting spoonfeeding string strings struct template templates text tree url variable vector video visual visualstudio win32 windows winsock wordfrequency wxwidgets






