16진수: hex
10진수: dec
8진수: oct
입력 시,
hex(cin)
dec(cin)
oct(cin)
출력 시,
cout<<hex<<num;
cout<<dec<<num;
cout<<oct<<num;
🚨 진수를 바꾸기 전에는 계속 유지됨
: cout<<hex<<num1;을 한 후에 cout<<num2;를 한다!
이때, num2의 형 역시 hex(16진수)인 것이다!
'프로그래밍 - 기본 > CPP, Unity, Kotlin' 카테고리의 다른 글
쓰레드(thread) (0) | 2022.01.15 |
---|---|
[협업] Export 방법 (0) | 2021.11.15 |
[Android] string.xml 문자열 리소스 이용하기 (0) | 2021.08.10 |
[Android] Default interface methods are only supported starting with Android N (--min-api 24) / error 해결법 (0) | 2021.07.15 |