TodCoder << 알고리즘 연즘 (Substitute)
Class Name : Substitute OS X_ X Code에서 정수형(int)를 실수형(string)으로 바꾸는 부분이 어려웠다. 비공식 라이브러리 stoi 등을 사용하면 좋을텐데... 처음 들어보는 ostringstream 를 사용! #include #include using namespace std; class Substitute { public: int getValue(string key, string code){ string temp, intTemp = " "; ostringstream convert; for(int i = 0; i