#include
#include

using std::string; using std::cin; using std::cout; using std::endl;


int main(){
string s("Hellow World!!!");

for (auto &c : s) c =toupper(c);
cout << s << endl;
}

이 코드에서 &c가 아니라 c로 하면 안되는 이유가 뭔가요??
for(auto c: s) c = toupper(c);로 할 경우에 그냥 Hellow World!!! 그대로 출력되더라고요. 감사합니다^^