bool is_inzyzifu(const string &str)
{
static string caps("//");
string::size_type pos = 0;
pos = str.find_first_of(caps, pos);
if (pos != string::npos)
{
return true;
}
else
{
return false;
}
}
int main()
{
string str = "C://data.txt";
if (is_inzyzifu(str))
{
cout << "yes" << endl;
}
else
{
cout << "no" << endl;
}
return 0;
}
{
static string caps("//");
string::size_type pos = 0;
pos = str.find_first_of(caps, pos);
if (pos != string::npos)
{
return true;
}
else
{
return false;
}
}
int main()
{
string str = "C://data.txt";
if (is_inzyzifu(str))
{
cout << "yes" << endl;
}
else
{
cout << "no" << endl;
}
return 0;
}