#include<iostream>
#include<string>
#include<cctype>
#include<iterator>
using namespace std;
bool find(string& s);
string my_tolower(string &s);
int main()
{
string ss="fsfsfHKJOFsfhsdf";
bool t;
char *pt=&ss[0];
t=find(ss);
if(t==true)
cout<<"there is big alpha"<<endl;
ss=my_tolower(ss);
for(auto it=ss.begin();it!=ss.end()&&!isspace(*it);it++)
cout<<*(it);
system("pause");
}
bool find(string& s)
{
bool t;
for(auto it=s.begin();it!=s.end()&&!isspace(*it);it++)
{
if(*(it)>='A' && *(it)<='Z')
{
t=true;
}
}
return t;
}
string my_tolower(string &s)
{
string::size_type size=s.size();
for(decltype(s.size()) index=0;index!=size;++index)
s[index]=tolower(s[index]);
return s;
}
#include<string>
#include<cctype>
#include<iterator>
using namespace std;
bool find(string& s);
string my_tolower(string &s);
int main()
{
string ss="fsfsfHKJOFsfhsdf";
bool t;
char *pt=&ss[0];
t=find(ss);
if(t==true)
cout<<"there is big alpha"<<endl;
ss=my_tolower(ss);
for(auto it=ss.begin();it!=ss.end()&&!isspace(*it);it++)
cout<<*(it);
system("pause");
}
bool find(string& s)
{
bool t;
for(auto it=s.begin();it!=s.end()&&!isspace(*it);it++)
{
if(*(it)>='A' && *(it)<='Z')
{
t=true;
}
}
return t;
}
string my_tolower(string &s)
{
string::size_type size=s.size();
for(decltype(s.size()) index=0;index!=size;++index)
s[index]=tolower(s[index]);
return s;
}