#include <iostream>
#include <string>
using namespace std;
void Str_Toupper(string & ) ;
int main()
{
string strtemp ;
cout<<"Enter a string(q to quit):" ;
while(getline(cin,strtemp))
{
if(strtemp.size()==1 && strtemp[0]=='q')
{
cout<<"Bye.";
break ;
}
else
{
Str_Toupper(strtemp) ;
cout<<strtemp <<endl;
cout<<"Next string(q to quit):" ;
}
}
return 0;
}
void Str_Toupper(string & str)
{
for(unsigned i = 0 ;i < str.size();i++)
{
if(isalnum(str[i]))
{
str[i]=toupper(str[i]) ;
}
else
{
continue ;
}
}
}