can anybody tell me the coding for a program to search an element in a string exactly the same word ,like if we are having two words is and this in string then we have to search for is then it only shows is not this........
gaggu82
0
Newbie Poster
Recommended Answers
Jump to Postyour english is very unclear. i do not understand you.
if i guess correctly. you have one word. and in that word you have to find another.
the best that i can think of is if you put the first word in a character array. and then you …
Jump to PostThere might be a way in the STL to do it, but I don't know. I'd write a search function that finds every occurrence of "is" and then checks to see if the first and last letters are on a word boundary.
#include <string> #include <cctype> using …
All 6 Replies
quintoncoert
131
Posting Whiz in Training
Hamrick
150
Posting Whiz
Bench
212
Posting Pro
Hamrick
150
Posting Whiz
Bench
212
Posting Pro
Hamrick
150
Posting Whiz
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.