[Level 1, C] 숫자 문자열과 영단어


[Level 1, C] 숫자 문자열과 영단어

#include #include #include #include // 파라미터로 주어지는 문자열은 const로 주어집니다. 변경하려면 문자열을 복사해서 사용하세요. int solution(const char* s) { int answer = 0; char array[10][6] = {"zero", "one", "two", "three", "four", "five", "six", "seven", "eight", "nine"}; char answer_array[50] = ""; int s_index = 0; int i_index = 0; while (s_index < strlen(s)) { if (s[s_index] >= 48 && s[s_index]


원문링크 : [Level 1, C] 숫자 문자열과 영단어