#include <iostream>
#include <string>
#include <cctype>
using namespace std;
string & up(string & st);
int main()
{
cout <<"Enter a string (q to quit): ";
string str;
while (getline(cin,str)&&str!="q")
{
cout <<up(str) <<endl;
cout <<"Next string (q to quit): ";
}
return 0;
}
string & up(string & st)
{
for (int i=0;i<sizeof st;i++)
st[i]=toupper(st[i]);
return st;
}