[내일배움캠프 - 언리얼] DAY 24 - 텍스트 콘솔 RPG - 2 try-catch로 입력 받은 값 검사string select;cin >> select;int a = -1;try { a = stoi(select);}catch (const std::invalid_argument& e) { cout 문자열로 받은 값을 int로 변환할 때 뜰 수 있는 오류를 try-catch로 검사하였다. 터미널에 색깔 입히기cout 내일배움캠프-언리얼 2025.12.31