+151 votes
415 views
I am writing a program to crawl websites.  My goal is to read and parse English language pages only.  For that, I need to check any non-english characters present in the string or not using c++. Please tell me the easiest way to do that.
in Programming by (1.1k points)
recategorized by | 415 views

Please log in or register to answer this question.

1 Answer

+139 votes
Check if character in string c++ Code :

std::string s = "Hello";

if (s. find('e') != std::string::npos)

cout << "Found";

else.

cout << "Not Found";
by (1.0k points)