블로그
-
[MFC] 자료형 정리
부호없는 정수형 (*.word형을 string형으로 바꾸기 string := IntToStr(word); ) DWORD : 4바이트의 부호없는 정수형 DWORD unsigned long : 4 byteslong, unsigned long : 4 bytesfloat : 4 b.......
blog.naver.com · 2016.02.03
-
[C++] inet_addr, htons 함수
이 unsigned long integer의 구성은 '.'당 8bit씩 4개의 값을 왼쪽에서 오른쪽으로 배열한다. 문자열 형태의 IP주소 값을 이렇게 unsigned long 타입의 값으로 변환해 주는 것이 inet_addr 함수 이다.
blog.naver.com · 2015.01.09
-
2014년 9월 27일 오후 2시 41분에 저장한 글입니다.
숫자 정수 - byte(1byte), short(2byte), int)4byte), long(8byte) : int가 default 타입 실수 - float(4btyte), double
blog.naver.com · 2014.09.27
-
Non Client 영역 (경계) 색상 변경
CSampleDialog::OnNcPaint() { CRect rect; GetWindowRect(&rect); rect.OffsetRect(-rect.left, -rect.top); int nX=0, nY=0; LONG lStyle = ::GetWindowLong(this->GetSafeHwnd(), GWL_STYLE); if(lStyle & WS_BORDER
blog.naver.com · 2014.08.06
-
Non Client 영역 (경계) 색상 변경
CSampleDialog::OnNcPaint() { CRect rect; GetWindowRect(&rect); rect.OffsetRect(-rect.left, -rect.top); int nX=0, nY=0; LONG lStyle = ::GetWindowLong(this->GetSafeHwnd(), GWL_STYLE); if(lStyle & WS_BORDER
blog.naver.com · 2014.08.06
-
[영진전문대학컴퓨터정보계열컴퓨터프로그래밍전공반] java 실습 오일러수
import java.util.Scanner; public class ex_01 { public static void main(String[] args) { double e=1.0; int factorial(int n){ long f=1; int i; for(i=1; i
blog.naver.com · 2014.05.19
-
[영진전문대학컴퓨터정보계열컴퓨터프로그래밍전공반] c언어 임의접근
#include #include #define SIZE 1000 void init_table(int table[], int size); int main(void) { int table [SIZE]; int n, data; long pos; FILE *fp = NULL; // 배열을 초기화한다. init_table(table, SIZE); // 이진 파일을 쓰기 모드로
blog.naver.com · 2014.06.03
-
[영진전문대학컴퓨터정보계열컴퓨터프로그래밍전공반] c언어 공용체 예제
#include union ip_address { unsigned long laddr; unsigned char saddr[4]; }; int main(void) { union ip_address
blog.naver.com · 2014.05.20
-
get_user_pages
iov_count, int write_to_vm, gfp_t gfp_mask){ int i, j; int nr_pages = 0; struct page **pages; struct bio *bio; int cur_page = 0; int ret, offset; for (i = 0; i < iov_count; i++) { unsigned long uaddr
blog.naver.com · 2013.11.06
-
[javascript]예약어
double else extends false final finally float for function goto if implements import in instanceof int interface long native new null package private super switch synchronized this throw throws transient
blog.naver.com · 2013.11.27