I'm writing a program to parse a user entered string. My textbook does not include the .find() function, but I found it in an old C++ book (Ivor Horton's Beginning C++, the Complete Language) is the .find() considered bad, or depricated? It seems to work really well, but I don't want to use things that are not up to standard, I want to avoid bad habits, as I've got enough I'm trying to break already.
Jjajangmyeon
0
Light Poster
Recommended Answers
Jump to PostThe .find() function (in string class) is perfectly fine. I've never heard anybody say that there was anything wrong with it. It's a simple function to find a matching character or string within a string, what could go wrong with that?
In general, the only standard functions that one could …
All 4 Replies
mike_2000_17
2,669
21st Century Viking
Team Colleague
Featured Poster
Moschops
683
Practically a Master Poster
Featured Poster
Jjajangmyeon
0
Light Poster
rubberman
1,355
Nearly a Posting Virtuoso
Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.