"Assert" 기능은 무엇입니까? 를 알게 되었습니다.assert능 、 、 、 、 "assert는 해당 인수가 거짓으로 판명될 경우 프로그램을 종료합니다(통상은 assert 스테이트먼트를 인용한 메시지 포함).이것은 보통 디버깅 중에 예기치 않은 상황이 발생했을 때 프로그램 장애를 보다 명확하게 하기 위해 사용됩니다. 예를 들어 다음과 같습니다. assert(length >= 0); // die if length is negative. 다음과 같이 실패했을 때 표시되는 보다 유용한 메시지를 추가할 수도 있습니다. assert(length >= 0 && "Whoops, length can't possibly be negative! (didn't we just check 10 lines ago?) Tell..