프로그래밍/C++ 일반1 Tip: 변수의 타입 출력하기 C++ 에서는 템플릿, auto 등을 통해 타입추론이 많이 사용되므로 실제 추론된 타입이 무엇인지 궁금할떄가 많다. 아래 스택오버플로우에서 관련 마음에 드는 방법을 찾아서 공유하고자 한다. (C++11 이상 기준) https://stackoverflow.com/questions/81870/is-it-possible-to-print-a-variables-type-in-standard-c Is it possible to print a variable's type in standard C++? For example: int a = 12; cout 2021. 8. 24. 이전 1 다음