error C2360 썸네일형 리스트형 [error] error C2360: initialization of 'variable' is skipped by 'case' label. Error Msg: error C2360: initialization of 'variable' is skipped by 'case' label. Error Causes: Switch-Case 문에서 지역 변수를 할당하려 하지만 스택 영역을 잡을 때 크기를 알 수 없기 때문에 발생. Error Solutions: Switch-Case 문에서 지역 변수 선언 및 초기화 시 중괄호("{}")로 코드를 묶어야 함. Example) switch(data) { case 1: { int return_data = 100; } break; default: ~~~ 더보기 이전 1 다음