string str = "num";


int num = 1;


...


cout<< str ;


결과 num1



스트링 뒤에 num을 문자로해서 붙이려는데 오또케하니


sprintf 말고 다른 간단한 방법 없음?