신문 헤드라인

108번뇌·2021년 6월 3일
#include <iostream>
#include <vector>
#include <algorithm>
#include <string>

using namespace std;


int main(int argc, char** argv)
{
	string sTemp;
	cin >> sTemp;

	for (int i = 0; i < sTemp.size(); i++)
	{
		sTemp[i] = toupper(sTemp[i]);
	}

	cout << sTemp << endl;

	return 0;
	
}
  1. string sTemp를 이런식으로 개별로 받으면 char형으로 받아지고
  2. toupper/tolower : 대소문자 변환식이다.
profile
내일 아침 눈을 떳을 때, '기대되는 오늘 하루를 만들기 위해' 나는 오늘도 생각하고 고민한다.

0개의 댓글