반응형 프로그래머의 길/C & C++93 printf() 출력 형식 지정자 printf() 출력 형식 지정자 예제.. Example/* PRINTF.C: This program uses the printf and wprintf functions * to produce formatted output. */ #include void main( void ) { char ch = 'h', *string = "computer"; int count = -9234; double fp = 251.7366; wchar_t wch = L'w', *wstring = L"Unicode"; /* Display integers. */ printf( "Integer formats:\n" "\tDecimal: %d Justified: %.6d Unsigned: %u\n", count, count, coun.. 2007. 2. 15. 아스키 코드표 10진수 16진수 8진수 2진수 ASCII 10진수 16진수 8진수 2진수 ASCII 0 0×00 000 0000000 NULL 64 0×40 100 1000000 @ 1 0×01 001 0000001 SOH 65 0×41 101 1000001 A 2 0×02 002 0000010 STX 66 0×42 102 1000010 B 3 0×03 003 0000011 ETX 67 0×43 103 1000011 C 4 0×04 004 0000100 EOT 68 0×44 104 1000100 D 5 0×05 005 0000101 ENQ 69 0×45 105 1000101 E 6 0×06 006 0000110 ACK 70 0×46 106 1000110 F 7 0×07 007 0000111 BEL 71 0×47 107.. 2007. 2. 15. SI 단위 SI 단위 곱 할 인 자 명 칭 기 호 비 고 1 000 000 000 000 000 000 000 000 = 1024 1 000 000 000 000 000 000 000 = 1021 1 000 000 000 000 000 000 = 1018 1 000 000 000 000 000 = 1015 1 000 000 000 000 = 1012 1 000 000 000 = 109 1 000 000 = 106 1 000 = 103 100 = 102 10 = 101 0.1 = 10-1 0.01 = 10-2 0.001 = 10-3 0.000 001 = 10-6 0.000 000 001 = 10-9 0.000 000 000 001 = 10-12 0.000 000 000 000 001 = 10-15 0.000 000 .. 2007. 2. 12. 이전 1 ··· 13 14 15 16 다음 반응형