목록Archive/_프로그래밍 (3)
Kim Junghyun
Linux 콘솔에 출력되는 글자색 or 글자배경색을 변경하는 옵션 \x1b[31m ---> 글자 붉은색 (30 ~ 37) \x1b[41m ---> 배경 붉은색 (40 ~ 47) \x1b[0m ---> 해제 30 : Color Test, 40 : Color Test 31 : Color Test, 41 : Color Test 32 : Color Test, 42 : Color Test 33 : Color Test, 43 : Color Test 34 : Color Test, 44 : Color Test 35 : Color Test, 45 : Color Test 36 : Color Test, 46 : Color Test 37 : Color Test, 47 : Color Test 만약, 해제를 해주지 않으면 그 다..
구 분 자료형 범 위 바이트 문자형 char unsigned char -128 ~ 127 0 ~ 255 1 1 정수형 short int long unsigned short unsigned int unsigned long -32768 ~ 32767 -2147483648 ~ 2147483647 -2147483648 ~ 2147483647 0 ~ 65535 0 ~ 4294967295 0 ~ 4294967295 2 4 4 2 4 4 실수형 float double 3.4E-37 ~ 3.4E38 1.7E10-307 ~ 1.7E308 4 8
Algorithm for generating the checksum digit : 1) Format the smart card number as a decimal number, mormally unsing 11 digits. 2) Starting with the least significant digit, multiply every 2nd digit by 2. 3) Res = Add all individual digits in the result. 4) Check digit = (10 - (Res MOD 10)) MOD 10. example : 1. smart card number = 001 4277 3428 2. (2*0)+0+(2*1) + 4+(2*2)+7+(2*7) + 3+(2*4)+2+(2*8) ..