문제

Visual Studio 프로젝트에서 C99 헤더 파일 inttypes.h를 사용하고 싶습니다 (64 비트 번호를 인쇄하고 싶습니다).

그러나이 파일은 설치에 존재하지 않는 것 같습니다.

이것은 vs2005의 일부가 아닌가? 대안이 있습니까?

도움이 되었습니까?

해결책

그것은있다 Google. VS는 함께 오지 않습니다 <inttypes.h>

다른 팁

아니요, VS 2005에는 포함되지 않습니다.

대안은 Boost의 구현입니다 부스트 :: 정수 도서관, 특히 boost/cstdint.hpp

Visual Studio 2005는 버그를 참조하십시오 "C99 헤더 <inttypes.h> 빠진 "at http://connect.microsoft.com/visualstudio/feedback/details/99133/c99-header-inttypes-missing#details Microsoft는 파일을 Visual Studio 2005에 추가 할 계획이없는 것 같습니다.

그것은 나에게 보인다 inttypes.h Visual Studio 2010에서도 누락되었습니다.

C ++ 헤더의 경우 <cinttypes> Visual Studio 2012에서 "C ++ 11 헤더가 누락되었습니다 (Microsoft Visual Studiom Ultimate 2012 RC 11.0.50522.1)". https://connect.microsoft.com/visualstudio/feedback/details/748766/c-11-header-cinttypes-is-missing-microsoft-visual-studio-ultimate-2012-rc-11-0-50522-1

Visual C ++는 자체 크기의 유형을 정의합니다.

__int8
__int16
__int32
__int64
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top